summaryrefslogtreecommitdiff
path: root/udev-add.c
diff options
context:
space:
mode:
authorrml@tech9.net <rml@tech9.net>2003-10-19 21:56:21 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:01:41 -0700
commitc2405f502cae4a634a25674306cffefb85df9ebb (patch)
tree1f51811af2c367b577d38fe3d0c190117ec4490f /udev-add.c
parentd7e954a4ef664cd65fbb34cb23ca57dc1bb89ea0 (diff)
[PATCH] udev: mode should be mode_t
Unix file modes should be stored in a mode_t, not a standard type. At the moment it is actually unsigned, in fact, not a signed integer. Attached patch does an s/int mode/mode_t mode/ and cleans up the results.
Diffstat (limited to 'udev-add.c')
-rw-r--r--udev-add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udev-add.c b/udev-add.c
index 05f2aa3e9d..d158c41b1d 100644
--- a/udev-add.c
+++ b/udev-add.c
@@ -71,7 +71,7 @@ exit:
/*
* We also want to add some permissions here, and possibly some symlinks
*/
-static int create_node(char *name, char type, int major, int minor, int mode)
+static int create_node(char *name, char type, int major, int minor, mode_t mode)
{
char filename[255];
int retval = 0;
@@ -94,7 +94,7 @@ static int create_node(char *name, char type, int major, int minor, int mode)
}
dbg("mknod(%s, %#o, %u, %u)", filename, mode, major, minor);
- retval = mknod(filename,mode,makedev(major,minor));
+ retval = mknod(filename, mode, makedev(major, minor));
if (retval)
dbg("mknod(%s, %#o, %u, %u) failed with error '%s'",
filename, mode, major, minor, strerror(errno));