Use int instead of char for return type, in theory avoiding a cast
authorGlenn L McGrath <bug1@ihug.co.nz>
Sun, 16 May 2004 02:35:49 +0000 (02:35 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sun, 16 May 2004 02:35:49 +0000 (02:35 -0000)
editors/sed.c

index 45cf7a7ad65ccce746958ad7968afdd1eec9b08c..45574e81dd5138039159a8032e8a3649ee37a44b 100644 (file)
@@ -1096,9 +1096,9 @@ static void add_cmd_block(char *cmdstr)
 
 extern int sed_main(int argc, char **argv)
 {
+       int status = EXIT_SUCCESS;
        int opt;
-       char getpat=1;
-       char status = EXIT_SUCCESS;
+       uint8_t getpat = 1;
 
 #ifdef CONFIG_FEATURE_CLEAN_UP
        /* destroy command strings on exit */