(pop3d_abquit): Added missing argument to syslog
Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -124,7 +124,7 @@ pop3d_abquit (int reason) | ... | @@ -124,7 +124,7 @@ pop3d_abquit (int reason) |
124 | 124 | ||
125 | default: | 125 | default: |
126 | pop3d_outf ("-ERR Quitting (reason unknown)\r\n"); | 126 | pop3d_outf ("-ERR Quitting (reason unknown)\r\n"); |
127 | syslog (LOG_ERR, _("Quitting (numeric reason %d)")); | 127 | syslog (LOG_ERR, _("Quitting (numeric reason %d)"), reason); |
128 | break; | 128 | break; |
129 | } | 129 | } |
130 | 130 | ||
... | @@ -163,7 +163,7 @@ pop3d_init_tls_server () | ... | @@ -163,7 +163,7 @@ pop3d_init_tls_server () |
163 | 163 | ||
164 | if (stream_open (stream)) | 164 | if (stream_open (stream)) |
165 | { | 165 | { |
166 | const char *p; | 166 | char *p; |
167 | stream_strerror (stream, &p); | 167 | stream_strerror (stream, &p); |
168 | syslog (LOG_ERR, _("cannot open TLS stream: %s"), p); | 168 | syslog (LOG_ERR, _("cannot open TLS stream: %s"), p); |
169 | return 0; | 169 | return 0; |
... | @@ -224,7 +224,7 @@ pop3d_outf (const char *fmt, ...) | ... | @@ -224,7 +224,7 @@ pop3d_outf (const char *fmt, ...) |
224 | free (buf); | 224 | free (buf); |
225 | if (rc) | 225 | if (rc) |
226 | { | 226 | { |
227 | const char *p; | 227 | char *p; |
228 | 228 | ||
229 | if (stream_strerror (ostream, &p)) | 229 | if (stream_strerror (ostream, &p)) |
230 | p = strerror (errno); | 230 | p = strerror (errno); |
... | @@ -247,7 +247,7 @@ pop3d_readline (char *buffer, size_t size) | ... | @@ -247,7 +247,7 @@ pop3d_readline (char *buffer, size_t size) |
247 | 247 | ||
248 | if (rc) | 248 | if (rc) |
249 | { | 249 | { |
250 | const char *p; | 250 | char *p; |
251 | 251 | ||
252 | if (stream_strerror (ostream, &p)) | 252 | if (stream_strerror (ostream, &p)) |
253 | p = strerror (errno); | 253 | p = strerror (errno); | ... | ... |
-
Please register or sign in to post a comment