summaryrefslogtreecommitdiff
path: root/src/udev/udevadm-util.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-12-05 23:30:10 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2017-12-05 23:30:10 +0900
commit5639df9a80a828f66ac1ab703dd4fe21a0fc1d19 (patch)
treeb0b88b8add1eb360ab7016ddb64cac51f36a062b /src/udev/udevadm-util.h
parenta135d2710532f69902038fa8b07ed083e9d79d36 (diff)
downloadsystemd-5639df9a80a828f66ac1ab703dd4fe21a0fc1d19.tar.gz
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.h4
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);
+}