diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-29 12:12:39 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-29 12:12:39 +0000 |
commit | 0893220b2a4507fc2619b625ecb0d6241ef5cd6f (patch) | |
tree | 1f81a1c1fac15dc8f3cd86aef65cbcf261f01a97 /cpukit/libmisc/shell/main_blksync.c | |
parent | Whitespace removal. (diff) | |
download | rtems-0893220b2a4507fc2619b625ecb0d6241ef5cd6f.tar.bz2 |
Whitespace removal.
Diffstat (limited to 'cpukit/libmisc/shell/main_blksync.c')
-rw-r--r-- | cpukit/libmisc/shell/main_blksync.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libmisc/shell/main_blksync.c b/cpukit/libmisc/shell/main_blksync.c index 8226aefc9a..bf8369570e 100644 --- a/cpukit/libmisc/shell/main_blksync.c +++ b/cpukit/libmisc/shell/main_blksync.c @@ -36,7 +36,7 @@ int rtems_shell_main_blksync( const char* driver = NULL; int arg; int fd; - + for (arg = 1; arg < argc; arg++) { if (argv[arg][0] == '-') { fprintf( stderr, "%s: invalid option: %s\n", argv[0], argv[arg]); @@ -51,18 +51,18 @@ int rtems_shell_main_blksync( } } } - + fd = open (driver, O_WRONLY, 0); if (fd < 0) { fprintf( stderr, "%s: driver open failed: %s\n", argv[0], strerror (errno)); return 1; } - + if (ioctl (fd, RTEMS_BLKIO_SYNCDEV) < 0) { fprintf( stderr, "%s: driver sync failed: %s\n", argv[0], strerror (errno)); return 1; } - + close (fd); return 0; } |