comparison toys/lsb/sync.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
comparison
equal deleted inserted replaced
693:4a5a250e0633 694:786841fdb1e0
1 /* vi: set sw=4 ts=4: 1 /* sync.c - Write all pending data to disk.
2 *
3 * sync.c - Write all pending data to disk.
4 * 2 *
5 * Copyright 2007 Rob Landley <rob@landley.net> 3 * Copyright 2007 Rob Landley <rob@landley.net>
6 * 4 *
7 * http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/sync.html 5 * http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/sync.html
8 6
9 USE_SYNC(NEWTOY(sync, NULL, TOYFLAG_BIN)) 7 USE_SYNC(NEWTOY(sync, NULL, TOYFLAG_BIN))
10 8
11 config SYNC 9 config SYNC
12 bool "sync" 10 bool "sync"
13 default y 11 default y
14 help 12 help
15 usage: sync 13 usage: sync
16 14
17 Write pending cached data to disk (synchronize), blocking until done. 15 Write pending cached data to disk (synchronize), blocking until done.
18 */ 16 */
19 17
20 #include "toys.h" 18 #include "toys.h"
21 19
22 void sync_main(void) 20 void sync_main(void)
23 { 21 {
24 sync(); 22 sync();
25 } 23 }