summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-08-14 18:55:11 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-08-14 19:06:54 -0400
commit960787ae27af395c28fb1ce9de5a575ebfb27a4d (patch)
tree318903d52bf57b1b86337cfd7b9126cf41d7e5f3 /src/test
parent85424725d1870e2c218e3e2d53971f7e5dc3f0ae (diff)
hostnamectl: show only specific hostname when requested
Existing --pretty, --transient, --static options, used previously for 'set-hostname' verb, are reused for the 'status' verb. If one of them is given, only the specified hostname is printed. This way there's no need to employ awk to get the hostname in a script.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-libudev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-libudev.c b/src/test/test-libudev.c
index caa3b4d14c..716767ba5f 100644
--- a/src/test/test-libudev.c
+++ b/src/test/test-libudev.c
@@ -430,7 +430,7 @@ static int test_enumerate(struct udev *udev, const char *subsystem)
}
static int test_hwdb(struct udev *udev, const char *modalias) {
- struct udev_hwdb * hwdb;
+ struct udev_hwdb *hwdb;
struct udev_list_entry *entry;
hwdb = udev_hwdb_new(udev);