summaryrefslogtreecommitdiff
path: root/udev_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_lib.c')
-rw-r--r--udev_lib.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/udev_lib.c b/udev_lib.c
index db1096ebf7..381492db01 100644
--- a/udev_lib.c
+++ b/udev_lib.c
@@ -58,15 +58,15 @@ char *get_devpath(void)
return devpath;
}
-char *get_devnode(void)
+char *get_devname(void)
{
- char *devnode;
+ char *devname;
- devnode = getenv("DEVNODE");
- if (devnode != NULL && strlen(devnode) > NAME_SIZE)
- devnode[NAME_SIZE-1] = '\0';
+ devname = getenv("DEVNAME");
+ if (devname != NULL && strlen(devname) > NAME_SIZE)
+ devname[NAME_SIZE-1] = '\0';
- return devnode;
+ return devname;
}
char *get_seqnum(void)