diff options
author | Dmitry Kurochkin <dmitry.kurochkin@gmail.com> | 2011-06-16 14:32:08 +0400 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-06-22 06:38:33 -0700 |
commit | 41a094624a079f4a145aba37e8059f8774dfaec6 (patch) | |
tree | 19f8c5620b55d37a3c50c37bdcdceecfa43c2d2c /test/smtp-dummy.c | |
parent | 2b76283b52a2389a591ca055b086381c44e2a61f (diff) |
Fix compilation warnings in test/smtp-dummy.c.
* Remove unused variables in main(): buf, bytes and greeting.
* Replace return with no value in main() with exit(3).
Diffstat (limited to 'test/smtp-dummy.c')
-rw-r--r-- | test/smtp-dummy.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c index e58d0ad6..133d6c4e 100644 --- a/test/smtp-dummy.c +++ b/test/smtp-dummy.c @@ -99,9 +99,6 @@ process_command (FILE *peer, FILE *output, const char *command) static void do_smtp_to_file (FILE *peer, FILE *output) { - char buf[4096]; - ssize_t bytes; - char greeting[] = "220 localhost smtp-dummy\r\n"; char *line = NULL; size_t line_size; ssize_t line_len; @@ -193,7 +190,7 @@ main (int argc, char *argv[]) if (peer_file == NULL) { fprintf (stderr, "Error: fdopen() failed: %s\n", strerror (errno)); - return; + exit (1); } do_smtp_to_file (peer_file, output); |