From 0a24c1219dd030828b2c951c3ccdbb61f6e92cde Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 21 May 2015 23:32:50 +0100 Subject: [PATCH] chmod.c: remove stdio --- Applications/util/chmod.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.34.1