annotate toys/true.c @ 186:25447caf1b4b

Change command main() functions to return void, and exit(toys.exitval) from the toybox infrastructure instead. Eliminates a return call from each command.
author Rob Landley <rob@landley.net>
date Thu, 29 Nov 2007 18:14:37 -0600
parents a0678c2ae9b8
children 30a6db5a95c2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
116
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents:
diff changeset
1 /* vi: set sw=4 ts=4: */
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents:
diff changeset
2 /*
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents:
diff changeset
3 * true.c - Return zero.
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents:
diff changeset
4 */
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents:
diff changeset
5
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents:
diff changeset
6 #include "toys.h"
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents:
diff changeset
7
186
25447caf1b4b Change command main() functions to return void, and exit(toys.exitval) from
Rob Landley <rob@landley.net>
parents: 116
diff changeset
8 void true_main(void)
116
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents:
diff changeset
9 {
186
25447caf1b4b Change command main() functions to return void, and exit(toys.exitval) from
Rob Landley <rob@landley.net>
parents: 116
diff changeset
10 return;
116
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents:
diff changeset
11 }