* Remove unused variables in main(): buf, bytes and greeting.
* Replace return with no value in main() with exit(3).
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;
if (peer_file == NULL) {
fprintf (stderr, "Error: fdopen() failed: %s\n",
strerror (errno));
- return;
+ exit (1);
}
do_smtp_to_file (peer_file, output);