Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/miscutils/ttysize.c
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/miscutils/ttysize.c
r1765 r2725 8 8 * Copyright (C) 2007 by Denys Vlasenko <vda.linux@googlemail.com> 9 9 * 10 * Licensed under the GPL v2, see the file LICENSE in this tarball.10 * Licensed under GPLv2, see file LICENSE in this source tree. 11 11 */ 12 12 #include "libbb.h" 13 13 14 int ttysize_main(int argc, char **argv) ;15 int ttysize_main(int argc , char **argv)14 int ttysize_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 15 int ttysize_main(int argc UNUSED_PARAM, char **argv) 16 16 { 17 unsigned w, h;17 unsigned w, h; 18 18 struct winsize wsz; 19 19 … … 25 25 } 26 26 27 if ( argc == 1) {27 if (!argv[1]) { 28 28 printf("%u %u", w, h); 29 29 } else { … … 40 40 } 41 41 } 42 putchar('\n');42 bb_putchar('\n'); 43 43 return 0; 44 44 }
Note:
See TracChangeset
for help on using the changeset viewer.