projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix opt type in dpkg (closes: #118975).
[oweals/busybox.git]
/
miscutils
/
mktemp.c
diff --git
a/miscutils/mktemp.c
b/miscutils/mktemp.c
index 2d53cc2a4f2a555afa40935c448976da1ce89cef..bc47d0af0fe922598c6805074fa8d7705a2c1fc9 100644
(file)
--- a/
miscutils/mktemp.c
+++ b/
miscutils/mktemp.c
@@
-22,14
+22,17
@@
*
*/
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <stdio.h>
#include <errno.h>
+#include <string.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include "busybox.h"
extern int mktemp_main(int argc, char **argv)
{
if (argc != 2 && (argc != 3 || strcmp(argv[1], "-q")))
extern int mktemp_main(int argc, char **argv)
{
if (argc != 2 && (argc != 3 || strcmp(argv[1], "-q")))
-
usage(mktemp_usage
);
+
show_usage(
);
if(mkstemp(argv[argc-1]) < 0)
return EXIT_FAILURE;
(void) puts(argv[argc-1]);
if(mkstemp(argv[argc-1]) < 0)
return EXIT_FAILURE;
(void) puts(argv[argc-1]);