Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/coreutils/logname.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/coreutils/logname.c
r1765 r2725 5 5 * Copyright (C) 2000 Edward Betts <edward@debian.org>. 6 6 * 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 8 */ 9 9 … … 25 25 /* This is a NOFORK applet. Be very careful! */ 26 26 27 int logname_main(int argc, char ATTRIBUTE_UNUSED **argv);28 int logname_main(int argc , char ATTRIBUTE_UNUSED **argv)27 int logname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 28 int logname_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) 29 29 { 30 char buf[ 128];30 char buf[64]; 31 31 32 if (arg c > 1) {32 if (argv[1]) { 33 33 bb_show_usage(); 34 34 } … … 37 37 if (getlogin_r(buf, sizeof(buf)) == 0) { 38 38 puts(buf); 39 return fflush (stdout);39 return fflush_all(); 40 40 } 41 41
Note:
See TracChangeset
for help on using the changeset viewer.