summaryrefslogtreecommitdiff
path: root/libudev
diff options
context:
space:
mode:
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>2009-08-08 14:29:38 +0100
committerKay Sievers <kay.sievers@vrfy.org>2009-08-08 15:42:05 +0200
commit214a6c791cbc0c1a190c430eb37056087e661344 (patch)
treed9d42bf69d517d3b62240c2b6f0f18c442aead64 /libudev
parentbd2dab9ce566a4e30d5372be9fa4e1921b7749f7 (diff)
fix spelling
Fix spelling in docbook comments, code comments, and a local variable name. Thanks to "ispell -h" for docbook HTML and "scspell" for source code. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Diffstat (limited to 'libudev')
-rw-r--r--libudev/libudev-device.c14
-rw-r--r--libudev/libudev-monitor.c6
-rw-r--r--libudev/libudev-queue.c2
-rw-r--r--libudev/libudev-util-private.c4
-rw-r--r--libudev/libudev.c2
5 files changed, 14 insertions, 14 deletions
diff --git a/libudev/libudev-device.c b/libudev/libudev-device.c
index 9d1e546c83..eac6bd6041 100644
--- a/libudev/libudev-device.c
+++ b/libudev/libudev-device.c
@@ -30,7 +30,7 @@
* Representation of kernel sys devices. Devices are uniquely identified
* by their syspath, every device has exactly one path in the kernel sys
* filesystem. Devices usually belong to a kernel subsystem, and and have
- * a unique name inside that subsytem.
+ * a unique name inside that subsystem.
*/
/**
@@ -270,7 +270,7 @@ struct udev_device *udev_device_new(struct udev *udev)
* @syspath: sys device path including sys directory
*
* Create new udev device, and fill in information from the sys
- * device and the udev database entry. The sypath is the absolute
+ * device and the udev database entry. The syspath is the absolute
* path to the device, including the sys mount point.
*
* The initial refcount is 1, and needs to be decremented to
@@ -427,12 +427,12 @@ struct udev_device *udev_device_new_from_devnum(struct udev *udev, char type, de
/**
* udev_device_new_from_subsystem_sysname:
* @udev: udev library context
- * @subsystem: the subsytem of the device
+ * @subsystem: the subsystem of the device
* @sysname: the name of the device
*
* Create new udev device, and fill in information from the sys
* device and the udev database entry. The device is looked up
- * by the subsytem and name string of the device, like "mem",
+ * by the subsystem and name string of the device, like "mem",
* "zero", or "block", "sda".
*
* The initial refcount is 1, and needs to be decremented to
@@ -554,7 +554,7 @@ static struct udev_device *device_new_from_parent(struct udev_device *udev_devic
* child device, and will be cleaned up when the child device
* is cleaned up.
*
- * It is not neccessarily just the upper level directory, empty or not
+ * It is not necessarily just the upper level directory, empty or not
* recognized sys directories are ignored.
*
* It can be called as many times as needed, without caring about
@@ -578,7 +578,7 @@ struct udev_device *udev_device_get_parent(struct udev_device *udev_device)
/**
* udev_device_get_parent_with_subsystem_devtype:
* @udev_device: udev device to start searching from
- * @subsystem: the subsytem of the device
+ * @subsystem: the subsystem of the device
* @devtype: the type (DEVTYPE) of the device
*
* Find the next parent device, with a matching subsystem and devtype
@@ -778,7 +778,7 @@ const char *udev_device_get_subsystem(struct udev_device *udev_device)
return NULL;
if (!udev_device->subsystem_set) {
udev_device->subsystem_set = 1;
- /* read "subsytem" link */
+ /* read "subsystem" link */
if (util_get_sys_subsystem(udev_device->udev, udev_device->syspath, subsystem, sizeof(subsystem)) > 0) {
udev_device_set_subsystem(udev_device, subsystem);
return udev_device->subsystem;
diff --git a/libudev/libudev-monitor.c b/libudev/libudev-monitor.c
index 2c6c685c6b..657f23d727 100644
--- a/libudev/libudev-monitor.c
+++ b/libudev/libudev-monitor.c
@@ -336,7 +336,7 @@ int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor)
/*
* get the address the kernel has assigned us
- * it is usually, but not neccessarily the pid
+ * it is usually, but not necessarily the pid
*/
addrlen = sizeof(struct sockaddr_nl);
err = getsockname(udev_monitor->sock, (struct sockaddr *)&snl, &addrlen);
@@ -747,7 +747,7 @@ int udev_monitor_send_device(struct udev_monitor *udev_monitor,
/*
* Use custom address for target, or the default one.
*
- * If we send to a muticast group, we will get
+ * If we send to a multicast group, we will get
* ECONNREFUSED, which is expected.
*/
if (destination != NULL)
@@ -768,7 +768,7 @@ int udev_monitor_send_device(struct udev_monitor *udev_monitor,
* udev_monitor_filter_add_match_subsystem_devtype:
* @udev_monitor: the monitor
* @subsystem: the subsystem value to match the incoming devices against
- * @devtype: the devtype value to matvh the incoming devices against
+ * @devtype: the devtype value to match the incoming devices against
*
* The filter must be installed before the monitor is switched to listening mode.
*
diff --git a/libudev/libudev-queue.c b/libudev/libudev-queue.c
index 691e6a7919..68efba0eee 100644
--- a/libudev/libudev-queue.c
+++ b/libudev/libudev-queue.c
@@ -28,7 +28,7 @@
* SECTION:libudev-queue
* @short_description: access to currently active events
*
- * The udev daemon processes event asynchronously. All events wich do not have
+ * The udev daemon processes event asynchronously. All events which do not have
* interdependencies are run in parallel. This exports the current state of the
* event processing queue, and the currently event sequence numbers from the kernel
* and the udev daemon.
diff --git a/libudev/libudev-util-private.c b/libudev/libudev-util-private.c
index 00d1c95d52..3641b3630f 100644
--- a/libudev/libudev-util-private.c
+++ b/libudev/libudev-util-private.c
@@ -96,7 +96,7 @@ int util_delete_path(struct udev *udev, const char *path)
}
/* Reset permissions on the device node, before unlinking it to make sure,
- * that permisions of possible hard links will be removed too.
+ * that permissions of possible hard links will be removed too.
*/
int util_unlink_secure(struct udev *udev, const char *filename)
{
@@ -342,7 +342,7 @@ int util_run_program(struct udev *udev, const char *command, char **envp,
}
execve(argv[0], argv, envp);
if (errno == ENOENT || errno == ENOTDIR) {
- /* may be on a filesytem which is not mounted right now */
+ /* may be on a filesystem which is not mounted right now */
info(udev, "program '%s' not found\n", argv[0]);
} else {
/* other problems */
diff --git a/libudev/libudev.c b/libudev/libudev.c
index 05b62efd86..190913871e 100644
--- a/libudev/libudev.c
+++ b/libudev/libudev.c
@@ -327,7 +327,7 @@ void udev_set_log_fn(struct udev *udev,
* udev_get_log_priority:
* @udev: udev library context
*
- * The initial syslog priortity is read from the udev config file
+ * The initial syslog priority is read from the udev config file
* at startup.
*
* Returns: the current syslog priority