mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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).
This commit is contained in:
parent
2b76283b52
commit
41a094624a
1 changed files with 1 additions and 4 deletions
|
@ -99,9 +99,6 @@ process_command (FILE *peer, FILE *output, const char *command)
|
||||||
static void
|
static void
|
||||||
do_smtp_to_file (FILE *peer, FILE *output)
|
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;
|
char *line = NULL;
|
||||||
size_t line_size;
|
size_t line_size;
|
||||||
ssize_t line_len;
|
ssize_t line_len;
|
||||||
|
@ -193,7 +190,7 @@ main (int argc, char *argv[])
|
||||||
if (peer_file == NULL) {
|
if (peer_file == NULL) {
|
||||||
fprintf (stderr, "Error: fdopen() failed: %s\n",
|
fprintf (stderr, "Error: fdopen() failed: %s\n",
|
||||||
strerror (errno));
|
strerror (errno));
|
||||||
return;
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
do_smtp_to_file (peer_file, output);
|
do_smtp_to_file (peer_file, output);
|
||||||
|
|
Loading…
Reference in a new issue