From: Pierre Habouzit Date: Wed, 2 Sep 2009 23:49:36 +0000 (+0200) Subject: cleanups X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=ee166a1830b1ece4904c2d83ce4b861ce079f66a;p=apps%2Fpfixtools.git cleanups Signed-off-by: Pierre Habouzit --- diff --git a/pfix-srsd/main-srsd.c b/pfix-srsd/main-srsd.c index 02739c1..917aa38 100644 --- a/pfix-srsd/main-srsd.c +++ b/pfix-srsd/main-srsd.c @@ -123,7 +123,7 @@ int process_srs(client_t *srsd, void* vconfig) } if (strncmp("get ", ibuf->data, 4)) { - err("bad request, not starting with \"get \""); + err("bad request, not starting with \"get \""); return -1; } @@ -131,7 +131,7 @@ int process_srs(client_t *srsd, void* vconfig) for (q = nl++; q >= p && isspace(*q); *q-- = '\0'); if (p == q) { - buffer_addstr(&*obuf, "400 empty request ???\n"); + buffer_addstr(obuf, "400 empty request ???\n"); warn("empty request"); goto skip; } @@ -145,16 +145,16 @@ int process_srs(client_t *srsd, void* vconfig) } if (err == 0) { - buffer_addstr(&*obuf, "200 "); - buffer_addstr(&*obuf, buf); + buffer_addstr(obuf, "200 "); + buffer_addstr(obuf, buf); } else { switch (SRS_ERROR_TYPE(err)) { case SRS_ERRTYPE_SRS: case SRS_ERRTYPE_SYNTAX: - buffer_addstr(&*obuf, "500 "); + buffer_addstr(obuf, "500 "); break; default: - buffer_addstr(&*obuf, "400 "); + buffer_addstr(obuf, "400 "); break; } buffer_addstr(obuf, srs_strerror(err));