Fix problem with unchecked return value of mkdir(), wrap in makedir() macro.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2014-11-26 23:27:15 +01:00
1 parent 4e975e4974
commit 81a368f710
6 files changed
+30 -27

No files matched your search

+2 -2
View File
@@ -48,8 +48,8 @@ static void setup(void *UNUSED(arg))
}
#endif
mkdir("/tmp/.X11-unix", 01777);
mkdir("/tmp/.ICE-unix", 01777);
makedir("/tmp/.X11-unix", 01777);
makedir("/tmp/.ICE-unix", 01777);
}
static plugin_t plugin = {