]> git.pld-linux.org Git - packages/setup.git/commitdiff
- avoid using fprintf(). saved 5k with diet
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 17 Jun 2005 16:25:10 +0000 (16:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postshell.c -> 1.4

postshell.c

index 1d68fb062cb32dca5b2981d9cb90d1271e113122..852c8cbeb67f2eeee4280e49f1372c953de43ef9 100644 (file)
@@ -194,12 +194,15 @@ void exec_file(FILE *f)
        }
 }
 
+#define error(msg) write(2, msg, strlen(msg))
 int main(int argc, char **argv)
 {
        FILE *f;
 
        if (argc < 2) {
-               fprintf(stderr, "USAGE: %s filename\n", argv[0]);
+               error("USAGE: ");
+               error(argv[0]);
+               error(" filename\n");
                exit(1);
        }
 
This page took 0.064448 seconds and 4 git commands to generate.