Shutdown sending on the socket when stdin closes.
[oweals/busybox.git] / fbset.c
diff --git a/fbset.c b/fbset.c
index 8307f262d66339651ae3171a77907f15a5421f4b..86f7733c9afbc160967c53ec61019eaa8a134b0a 100644 (file)
--- a/fbset.c
+++ b/fbset.c
@@ -283,7 +283,7 @@ static int readmode(struct fb_var_screeninfo *base, const char *fn,
                }
        }
 #else
-       errorMsg( "mode reading not compiled in\n");
+       error_msg( "mode reading not compiled in\n");
 #endif
        return 0;
 }
@@ -433,8 +433,8 @@ extern int fbset_main(int argc, char **argv)
                PERROR("fbset(ioctl)");
        if (g_options & OPT_READMODE) {
                if (!readmode(&var, modefile, mode)) {
-                       errorMsg("Unknown video mode `%s'\n", mode);
-                       exit(1);
+                       error_msg("Unknown video mode `%s'\n", mode);
+                       return EXIT_FAILURE;
                }
        }
 
@@ -446,5 +446,5 @@ extern int fbset_main(int argc, char **argv)
        /* Don't close the file, as exiting will take care of that */
        /* close(fh); */
 
-       return (TRUE);
+       return EXIT_SUCCESS;
 }