diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-12-05 15:30:10 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-12-05 15:30:10 +0100 |
commit | 5639df9a80a828f66ac1ab703dd4fe21a0fc1d19 (patch) | |
tree | b0b88b8add1eb360ab7016ddb64cac51f36a062b /src/udev/udevadm-util.h | |
parent | man: lists short options in systemd-udevd.service(8) (diff) | |
download | systemd-5639df9a80a828f66ac1ab703dd4fe21a0fc1d19.tar.xz systemd-5639df9a80a828f66ac1ab703dd4fe21a0fc1d19.zip |
udevadm: getopt() and help message cleanup
This adds missing options, mainly '--version' in getopt(), removes
an unused option from getopt().
Also, this adds a deprecate message in `udevadm hwdb`, and cleanups
help messages.
Follow-up for 65eb4378c3e1de25383d8cd606909e64c71edc80.
Diffstat (limited to 'src/udev/udevadm-util.h')
-rw-r--r-- | src/udev/udevadm-util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/udev/udevadm-util.h b/src/udev/udevadm-util.h index 7963acaa53..8262a8343f 100644 --- a/src/udev/udevadm-util.h +++ b/src/udev/udevadm-util.h @@ -23,3 +23,7 @@ struct udev_device *find_device(struct udev *udev, const char *id, const char *prefix); + +static inline void print_version(void) { + printf("%s\n", PACKAGE_VERSION); +} |