Mercurial > hg > toybox
comparison toys/posix/true.c @ 694:786841fdb1e0
Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
The actual code should be the same afterward, this is just cosmetic refactoring.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 13 Nov 2012 17:14:08 -0600 |
parents | 6df4ccc0acbe |
children | e2b84f715e93 |
comparison
equal
deleted
inserted
replaced
693:4a5a250e0633 | 694:786841fdb1e0 |
---|---|
1 /* vi: set sw=4 ts=4: | 1 /* true.c - Return zero. |
2 * | |
3 * true.c - Return zero. | |
4 * | 2 * |
5 * Copyright 2007 Rob Landley <rob@landley.net> | 3 * Copyright 2007 Rob Landley <rob@landley.net> |
6 * | 4 * |
7 * See http://opengroup.org/onlinepubs/9699919799/utilities/true.html | 5 * See http://opengroup.org/onlinepubs/9699919799/utilities/true.html |
8 | 6 |
9 USE_TRUE(NEWTOY(true, NULL, TOYFLAG_BIN)) | 7 USE_TRUE(NEWTOY(true, NULL, TOYFLAG_BIN)) |
10 | 8 |
11 config TRUE | 9 config TRUE |
12 bool "true" | 10 bool "true" |
13 default y | 11 default y |
14 help | 12 help |
15 Return zero. | 13 Return zero. |
16 */ | 14 */ |
17 | 15 |
18 #include "toys.h" | 16 #include "toys.h" |
19 | 17 |
20 void true_main(void) | 18 void true_main(void) |
21 { | 19 { |
22 return; | 20 return; |
23 } | 21 } |