find:: get rid of nested function (it's a gcc-ism)
[oweals/busybox.git] / miscutils / wall.c
index 2dbab60b460456d89d3d1883374c9d364880f46d..762f53b728d3f9c0302fa6a83f19a690ef153f20 100644 (file)
@@ -3,11 +3,19 @@
  * wall - write a message to all logged-in users
  * Copyright (c) 2009 Bernhard Reutner-Fischer
  *
- * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 
+//usage:#define wall_trivial_usage
+//usage:       "[FILE]"
+//usage:#define wall_full_usage "\n\n"
+//usage:       "Write content of FILE or stdin to all logged-in users"
+//usage:
+//usage:#define wall_sample_usage
+//usage:       "echo foo | wall\n"
+//usage:       "wall ./mymessage"
+
 #include "libbb.h"
-#include <utmp.h>
 
 int wall_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int wall_main(int argc UNUSED_PARAM, char **argv)