diff options
author | azarah@nosferatu.za.org <azarah@nosferatu.za.org> | 2003-12-30 01:18:28 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:12 -0700 |
commit | 8ed89229bc8afed84ad6d587a6df29329bbbf440 (patch) | |
tree | 52414d6550a7f61c896782d23d107456efe4c1b6 /namedev.c | |
parent | f732a97ebe079413524fb992a119b9579bd04136 (diff) |
[PATCH] Fix udev gcc-2.95.4 compat
Two liner to get gcc-2.95.4 to compile udev.
Diffstat (limited to 'namedev.c')
-rw-r--r-- | namedev.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -655,9 +655,9 @@ static struct sysfs_device *get_sysfs_device(struct sysfs_class_device *class_de if (isdigit(class_dev->path[strlen(class_dev->path)-1])) { temp = strrchr(filename, '/'); if (temp) { + char *temp2 = strrchr(filename, '/'); partition = 1; *temp = 0x00; - char *temp2 = strrchr(filename, '/'); dbg("temp2 = %s", temp2); if (temp2 && (strcmp(temp2, "/block") == 0)) { /* oops, we have no parent block device, so go back to original directory */ |