X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=pfix-srsd%2Fmain-srsd.c;h=9f1bdd3b3656749193e4d4d040a83bc10687571e;hb=520b2f3bb198bfbb88b90b058ef610f0a9b980c6;hp=e7f4906b44d7a8c9df3ea220715b794e159c22b1;hpb=8ad7a11fd6ad8b8f5edfbde9da16a18b7a846738;p=apps%2Fpfixtools.git diff --git a/pfix-srsd/main-srsd.c b/pfix-srsd/main-srsd.c index e7f4906..9f1bdd3 100644 --- a/pfix-srsd/main-srsd.c +++ b/pfix-srsd/main-srsd.c @@ -122,7 +122,7 @@ int process_srs(server_t *srsd, void* vconfig) nl = strchr(srsd->ibuf.data + 4, '\n'); if (!nl) { if (srsd->ibuf.len > BUFSIZ) { - syslog(LOG_ERR, "unreasonnable amount of data without a \\n"); + err("unreasonnable amount of data without a \\n"); return -1; } if (srsd->obuf.len) { @@ -132,7 +132,7 @@ int process_srs(server_t *srsd, void* vconfig) } if (strncmp("get ", srsd->ibuf.data, 4)) { - syslog(LOG_ERR, "bad request, not starting with \"get \""); + err("bad request, not starting with \"get \""); return -1; } @@ -141,7 +141,7 @@ int process_srs(server_t *srsd, void* vconfig) if (p == q) { buffer_addstr(&srsd->obuf, "400 empty request ???\n"); - syslog(LOG_WARNING, "empty request"); + warn("empty request"); goto skip; } @@ -234,7 +234,7 @@ static srs_t *srs_read_secrets(const char *sfile) ++lineno; if (n == sizeof(buf) - 1 && buf[n - 1] != '\n') { - syslog(LOG_CRIT, "%s:%d: line too long", sfile, lineno); + crit("%s:%d: line too long", sfile, lineno); goto error; } m_strrtrim(buf); @@ -242,7 +242,7 @@ static srs_t *srs_read_secrets(const char *sfile) } if (!lineno) { - syslog(LOG_CRIT, "%s: empty file, no secrets", sfile); + crit("%s: empty file, no secrets", sfile); goto error; }