projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This is vodz' latest patch. Sorry it took so long...
[oweals/busybox.git]
/
uname.c
diff --git
a/uname.c
b/uname.c
index 4f7c643f9a15b9493ad50c0ca7439f5e7db6c8ca..f7e2291a8f8cc159201568da24bc96a8895d96c2 100644
(file)
--- a/
uname.c
+++ b/
uname.c
@@
-31,14
+31,16
@@
/* Busyboxed by Erik Andersen */
/* Busyboxed by Erik Andersen */
-#include "busybox.h"
#include <stdio.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/utsname.h>
#if defined (HAVE_SYSINFO) && defined (HAVE_SYS_SYSTEMINFO_H)
# include <sys/systeminfo.h>
#endif
#include <sys/types.h>
#include <sys/utsname.h>
#if defined (HAVE_SYSINFO) && defined (HAVE_SYS_SYSTEMINFO_H)
# include <sys/systeminfo.h>
#endif
+#include "busybox.h"
static void print_element(unsigned int mask, char *element);
static void print_element(unsigned int mask, char *element);
@@
-105,7
+107,7
@@
int uname_main(int argc, char **argv)
PRINT_MACHINE);
break;
default:
PRINT_MACHINE);
break;
default:
-
usage(uname_usage
);
+
show_usage(
);
}
}
}
}
}
}