]> mj.ucw.cz Git - moe.git/commitdiff
Document various error reporting functions.
authorMartin Mares <mj@ucw.cz>
Sun, 24 Aug 2008 21:03:34 +0000 (23:03 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 24 Aug 2008 21:03:34 +0000 (23:03 +0200)
box/box.c

index e3dadeaa70774f52ee6e49c7c69715891bfa2888..1aa3084db6555c2c0cfbe185b60e5c9ab15e9745 100644 (file)
--- a/box/box.c
+++ b/box/box.c
@@ -133,6 +133,7 @@ flush_line(void)
   partial_line = 0;
 }
 
+/* Report an error of the sandbox itself */
 static void NONRET __attribute__((format(printf,1,2)))
 die(char *msg, ...)
 {
@@ -147,6 +148,7 @@ die(char *msg, ...)
   box_exit(2);
 }
 
+/* Report an error of the program inside the sandbox */
 static void NONRET __attribute__((format(printf,1,2)))
 err(char *msg, ...)
 {
@@ -166,6 +168,7 @@ err(char *msg, ...)
   box_exit(1);
 }
 
+/* Write a message, but only if in verbose mode */
 static void __attribute__((format(printf,1,2)))
 msg(char *msg, ...)
 {