Skip to contentSkip to conversation

small trivial cleanup of latest changes

udev Applied Kay Sievers 2 participants 2 messages Dec 25, 2003 – Dec 30, 2003

lore
Share & tools
lore
#0 lore raw

Hi,
here is a patch for a typo in the man page, a whitespace cleanup and a replace for the magic hex ASCII in char operations.

thanks,
Kay

namedev_parse.c +2 -2
diff -Nru a/namedev_parse.c b/namedev_parse.c
@@ -176,7 +176,7 @@
 			++temp;
 
 		/* empty line? */
-		if ((*temp == 0x00) || (*temp == 0x0a))
+		if ((*temp == '\0') || (*temp == '\n'))
 			continue;
 
 		/* see if this is a comment */
@@ -376,7 +376,7 @@
 			++temp;
 
 		/* empty line? */
-		if ((*temp == 0x00) || (*temp == 0x0a))
+		if ((*temp == '\0') || (*temp == '\n'))
 			continue;
 
 		/* see if this is a comment */
udev.8 +6 -6
diff -Nru a/udev.8 b/udev.8
@@ -78,7 +78,7 @@
 # udev_permissions - The name and location of the udev permission file
 udev_permissions="/etc/udev/udev.permissions"
 
-# default_mode - set the default mode for all nodes that have no 
+# default_mode - set the default mode for all nodes that have no
 #                explicit match in the permissions file
 default_mode="0666"
 .fi
@@ -106,18 +106,18 @@
 where valid methods with corresponding keys are:
 .TP
 .B CALLOUT
-calling external program, that returns a string to match.  The 
-.BR BUS 
+calling external program, that returns a string to match.  The
+.B BUS
 key is optional, but if specified, the sysfs device bus must be able to be
-detemined by a "device" symlink.
+determined by a "device" symlink.
 .br
 .RB "keys: " BUS ", " PROGRAM ", " ID
 .TP
 .B LABEL
 device label or serial number, like USB serial number, SCSI UUID or
 file system label.  Up to 5 different sysfs files can be checked, with
-all of the values being required in order to match the rule.  The 
-.BR BUS 
+all of the values being required in order to match the rule.  The
+.B BUS
 key is optional, but if specified, the sysfs device bus must be able to be
 detemined by a "device" symlink.
 .br
Applied
#1 lore raw
Quoted 3 lines · Kay Sievers

Hi,
here is a patch for a typo in the man page, a whitespace cleanup and a replace for the magic hex ASCII in char operations.

Applied, thanks.

greg k-h

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel