chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f732a97
)
[PATCH] Fix udev gcc-2.95.4 compat
author
azarah@nosferatu.za.org
<azarah@nosferatu.za.org>
Tue, 30 Dec 2003 09:18:28 +0000
(
01:18
-0800)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 04:13:12 +0000
(21:13 -0700)
Two liner to get gcc-2.95.4 to compile udev.
namedev.c
patch
|
blob
|
history
diff --git
a/namedev.c
b/namedev.c
index e69eba657a5be161deda8eafdee9e79d238e86d3..cff338f1a719b635c06a33c765d2376f46869f4b 100644
(file)
--- a/
namedev.c
+++ b/
namedev.c
@@
-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 */