From: Alan Cox Date: Thu, 21 May 2015 22:32:50 +0000 (+0100) Subject: chmod.c: remove stdio X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0a24c1219dd030828b2c951c3ccdbb61f6e92cde;p=FUZIX.git chmod.c: remove stdio --- diff --git a/Applications/util/chmod.c b/Applications/util/chmod.c index 3977c9f0..28f0a82f 100644 --- a/Applications/util/chmod.c +++ b/Applications/util/chmod.c @@ -4,6 +4,8 @@ * You may freely redistribute this software, in source or binary * form, provided that you do not alter this copyright mention in any * way. + * + * Stdio usage removed Alan Cox 2015 */ #include @@ -258,6 +260,6 @@ int do_change(char *name) /* Display Posix prototype */ void usage(void) { - fprintf(stderr, "Usage: chmod [-R] mode file...\n"); + write(2, "Usage: chmod [-R] mode file...\n",31); exit(1); }