projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
init: add support for sysupgrades triggered from preinit
[project/procd.git]
/
initd
/
mkdev.c
diff --git
a/initd/mkdev.c
b/initd/mkdev.c
index
a9a2320
..
44101aa
100644
(file)
--- a/
initd/mkdev.c
+++ b/
initd/mkdev.c
@@
-12,10
+12,11
@@
* GNU General Public License for more details.
*/
* GNU General Public License for more details.
*/
-#define _
BSD
_SOURCE
+#define _
DEFAULT
_SOURCE
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
@@
-121,7
+122,6
@@
int mkdev(const char *name, int _mode)
n_patterns = 1;
find_devs(true);
find_devs(false);
n_patterns = 1;
find_devs(true);
find_devs(false);
- chdir("/");
-
- return 0;
+ free(pattern);
+ return chdir("/");
}
}