chmod.c: remove stdio
authorAlan Cox <alan@linux.intel.com>
Thu, 21 May 2015 22:32:50 +0000 (23:32 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 21 May 2015 22:32:50 +0000 (23:32 +0100)
Applications/util/chmod.c

index 3977c9f..28f0a82 100644 (file)
@@ -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 <dirent.h>
@@ -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);
 }