summaryrefslogtreecommitdiff
path: root/udev_lib.c
diff options
context:
space:
mode:
authorsjoerd@spring.luon.net <sjoerd@spring.luon.net>2004-04-08 18:48:56 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:15 -0700
commit4b06c852cb7da274b50f665a75367f901d8064ae (patch)
tree1452478c34cf0c0d1656dd58bff3ef5dc3d4196f /udev_lib.c
parent1321258af575f1e704aedfb3b6ed8aa341632a50 (diff)
[PATCH] DEVNODE -> DEVNAME transition fixes
It seems that the transition from DEVNODE to DEVNAME wasn't done everywhere. This broke udev_dbus for me. Attached patch does the transition in the places it wasn't done yet.
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)