diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-11-12 06:21:16 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 22:25:09 -0700 |
commit | 8673dcb84299fd2adba6281c5359bed4399d5b2d (patch) | |
tree | 9db3b5d4e7218b098c53d62b8805c9c9368a78af /udev_remove.c | |
parent | af4b05d4917fdfa55eff3d8d53a830464d8162a1 (diff) |
[PATCH] Make dev.d/ handling a separate processing stage
Move the logic when and how to call the dev.d/ scripts into the
main processing path.
Diffstat (limited to 'udev_remove.c')
-rw-r--r-- | udev_remove.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/udev_remove.c b/udev_remove.c index d855fce52c..56834a45b9 100644 --- a/udev_remove.c +++ b/udev_remove.c @@ -112,7 +112,7 @@ static int delete_node(struct udevice *udev) int len; int num; - snprintf(filename, NAME_SIZE-1, "%s/%s", udev_root, udev->name); + snprintf(filename, NAME_SIZE, "%s/%s", udev_root, udev->name); filename[NAME_SIZE-1] = '\0'; info("removing device node '%s'", filename); @@ -143,7 +143,7 @@ static int delete_node(struct udevice *udev) char linkname[NAME_SIZE]; strfieldcpymax(linkname, pos, len+1); - snprintf(filename, NAME_SIZE-1, "%s/%s", udev_root, linkname); + snprintf(filename, NAME_SIZE, "%s/%s", udev_root, linkname); filename[NAME_SIZE-1] = '\0'; dbg("unlinking symlink '%s'", filename); @@ -189,7 +189,7 @@ int udev_remove_device(struct udevice *udev) udevdb_delete_dev(udev); /* use full path to the environment */ - snprintf(udev->devname, NAME_SIZE-1, "%s/%s", udev_root, udev->name); + snprintf(udev->devname, NAME_SIZE, "%s/%s", udev_root, udev->name); return delete_node(udev); } |