diff options
author | Kay Sievers <kay@vrfy.org> | 2012-04-16 20:27:44 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-04-16 20:54:17 +0200 |
commit | 33502ffe2eb7b56cdd018a4fb6830d7828519fad (patch) | |
tree | 02180c0a82618b09f7346edaa7b28dd93eb81c9f /src/udev/udevadm-trigger.c | |
parent | 6ada823a9a0979ea145fd70add1007c21caa45c0 (diff) |
udev: use startswith() and streq()
Diffstat (limited to 'src/udev/udevadm-trigger.c')
-rw-r--r-- | src/udev/udevadm-trigger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevadm-trigger.c b/src/udev/udevadm-trigger.c index a910121ecd..7735e4b67b 100644 --- a/src/udev/udevadm-trigger.c +++ b/src/udev/udevadm-trigger.c @@ -164,7 +164,7 @@ static int adm_trigger(struct udev *udev, int argc, char *argv[]) struct udev_device *dev; /* add sys dir if needed */ - if (strncmp(optarg, "/sys", strlen("/sys")) != 0) + if (!startswith(optarg, "/sys")) util_strscpyl(path, sizeof(path), "/sys", optarg, NULL); else util_strscpy(path, sizeof(path), optarg); |