X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Flibudev%2Flibudev-device.c;h=82df426491e38a7f2e4ce414b8c1ebb0942d688c;hb=53e1b683907c2f12330f00feb9630150196f064d;hp=bd349e3f6400e0ef2180d09cde3946b53fc981e7;hpb=6bedfcbb2970e06a4d3280c8fb62083d252ede73;p=thirdparty%2Fsystemd.git diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c index bd349e3f640..82df426491e 100644 --- a/src/libudev/libudev-device.c +++ b/src/libudev/libudev-device.c @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ /*** This file is part of systemd. @@ -37,6 +38,7 @@ #include "libudev.h" #include "sd-device.h" +#include "alloc-util.h" #include "device-private.h" #include "device-util.h" #include "libudev-device-internal.h" @@ -494,7 +496,7 @@ _public_ struct udev_device *udev_device_get_parent_with_subsystem_devtype(struc return NULL; } - /* then walk the chain of udev_device parents until the correspanding + /* then walk the chain of udev_device parents until the corresponding one is found */ while ((udev_device = udev_device_get_parent(udev_device))) { if (udev_device->device == parent) @@ -618,7 +620,7 @@ _public_ const char *udev_device_get_syspath(struct udev_device *udev_device) * * Get the kernel device name in /sys. * - * Returns: the name string of the device device + * Returns: the name string of the device **/ _public_ const char *udev_device_get_sysname(struct udev_device *udev_device) {