summaryrefslogtreecommitdiffstats
path: root/src/udev/udevadm-test-builtin.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-04-25 01:21:11 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-06-02 07:15:26 +0200
commit25de7aa7b90c23d33ea50ada1e50c5834a414237 (patch)
tree82a7c5095193da13becc2fe9e83c64801045ae35 /src/udev/udevadm-test-builtin.c
parentutil: introduce strnpcpy() and strnscpy() (diff)
downloadsystemd-25de7aa7b90c23d33ea50ada1e50c5834a414237.tar.xz
systemd-25de7aa7b90c23d33ea50ada1e50c5834a414237.zip
udev: modernize udev-rules.c
This does the following: - rename enum udev_builtin_cmd -> UdevBuiltinCmd - rename struct udev_builtin -> UdevBuiltin - move type definitions to udev-rules.h - move prototypes of functions defined in udev-rules.c to udev-rules.h - drop to use strbuf - propagate critical errors in applying rules, - drop limitation for number of tokens per line.
Diffstat (limited to 'src/udev/udevadm-test-builtin.c')
-rw-r--r--src/udev/udevadm-test-builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevadm-test-builtin.c b/src/udev/udevadm-test-builtin.c
index 22c3184a01..eb5d3e2b90 100644
--- a/src/udev/udevadm-test-builtin.c
+++ b/src/udev/udevadm-test-builtin.c
@@ -63,7 +63,7 @@ static int parse_argv(int argc, char *argv[]) {
int builtin_main(int argc, char *argv[], void *userdata) {
_cleanup_(sd_device_unrefp) sd_device *dev = NULL;
- enum udev_builtin_cmd cmd;
+ UdevBuiltinCommand cmd;
int r;
log_set_max_level(LOG_DEBUG);