Permalink
Browse files

[answerback] small cleanup, no need to rebuild

  • Loading branch information...
majnemer committed Dec 31, 2010
1 parent b1fe9d2 commit 26a9ecd646c61faac3d21570793faa39c4ec2c98
Showing with 5 additions and 5 deletions.
  1. +5 −5 answerback.c
View
@@ -2,10 +2,10 @@
#include <signal.h> /* for signal handling */
#include <stdio.h> /* fopen(), et al. */
-#include <fcntl.h> /* for open */
-#include <unistd.h> /* for ssize_t, read, write */
+#include <fcntl.h> /* for open() */
+#include <unistd.h> /* for ssize_t, read(), write() */
#include <stdlib.h> /* for EXIT_SUCCESS, EXIT_FAILURE */
-#include <termios.h> /* ctermid, et al. */
+#include <termios.h> /* ctermid(), et al. */
#define ANSWERBACK_LEN 16
#define ANSWERBACK_CODE 5
@@ -33,7 +33,7 @@ int main()
if (cterm == NULL)
{
- fputs("Cannot get the path to the console", stderr);
+ (void)fputs("Cannot get the path to the console", stderr);
return EXIT_FAILURE;
}
@@ -51,7 +51,7 @@ int main()
if (atexit(tty_reset) != 0)
{
- fputs("Cannot set the exit function", stderr);
+ (void)fputs("Cannot set the exit function", stderr);
return EXIT_FAILURE;
}

0 comments on commit 26a9ecd

Please sign in to comment.