summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2003-12-30 00:54:29 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:11 -0700
commite15b5ed5ded18af1329b304fc650a1cbc8123ccc (patch)
treed6a663d76b0149c33b5f7e63188f3ca007a1b9cb
parent1f99bc3254d8d996408ad712b149d115505c8422 (diff)
[PATCH] small trivial cleanup of latest changes
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.
-rw-r--r--namedev_parse.c4
-rw-r--r--udev.812
2 files changed, 8 insertions, 8 deletions
diff --git a/namedev_parse.c b/namedev_parse.c
index aec87d2771..2858a28091 100644
--- a/namedev_parse.c
+++ b/namedev_parse.c
@@ -176,7 +176,7 @@ int namedev_init_rules(void)
++temp;
/* empty line? */
- if ((*temp == 0x00) || (*temp == 0x0a))
+ if ((*temp == '\0') || (*temp == '\n'))
continue;
/* see if this is a comment */
@@ -376,7 +376,7 @@ int namedev_init_permissions(void)
++temp;
/* empty line? */
- if ((*temp == 0x00) || (*temp == 0x0a))
+ if ((*temp == '\0') || (*temp == '\n'))
continue;
/* see if this is a comment */
diff --git a/udev.8 b/udev.8
index 65af6d00a8..eb772c9dbe 100644
--- a/udev.8
+++ b/udev.8
@@ -78,7 +78,7 @@ udev_rules="/etc/udev/udev.rules"
# 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 @@ The line format is:
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