summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-07-27 22:36:36 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-08-05 20:49:21 -0400
commitae691c1d9382995ea7e28317f5c37023229c27ee (patch)
tree62ecbb70b83af41c523969a33c98efddef4eba35 /src/test
parent17eb9a9ddba3f03fcba33445c1c1eedeb948da04 (diff)
hostname-util: get rid of unused parameter of hostname_cleanup()
All users are now setting lowercase=false.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-hostname-util.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/test/test-hostname-util.c b/src/test/test-hostname-util.c
index 2357ab5758..08be3f7bf2 100644
--- a/src/test/test-hostname-util.c
+++ b/src/test/test-hostname-util.c
@@ -65,37 +65,37 @@ static void test_hostname_cleanup(void) {
char *s;
s = strdupa("foobar");
- assert_se(streq(hostname_cleanup(s, false), "foobar"));
+ assert_se(streq(hostname_cleanup(s), "foobar"));
s = strdupa("foobar.com");
- assert_se(streq(hostname_cleanup(s, false), "foobar.com"));
+ assert_se(streq(hostname_cleanup(s), "foobar.com"));
s = strdupa("foobar.com.");
- assert_se(streq(hostname_cleanup(s, false), "foobar.com"));
+ assert_se(streq(hostname_cleanup(s), "foobar.com"));
s = strdupa("fooBAR");
- assert_se(streq(hostname_cleanup(s, false), "fooBAR"));
+ assert_se(streq(hostname_cleanup(s), "fooBAR"));
s = strdupa("fooBAR.com");
- assert_se(streq(hostname_cleanup(s, false), "fooBAR.com"));
+ assert_se(streq(hostname_cleanup(s), "fooBAR.com"));
s = strdupa("fooBAR.");
- assert_se(streq(hostname_cleanup(s, false), "fooBAR"));
+ assert_se(streq(hostname_cleanup(s), "fooBAR"));
s = strdupa("fooBAR.com.");
- assert_se(streq(hostname_cleanup(s, false), "fooBAR.com"));
+ assert_se(streq(hostname_cleanup(s), "fooBAR.com"));
s = strdupa("fööbar");
- assert_se(streq(hostname_cleanup(s, false), "fbar"));
+ assert_se(streq(hostname_cleanup(s), "fbar"));
s = strdupa("");
- assert_se(isempty(hostname_cleanup(s, false)));
+ assert_se(isempty(hostname_cleanup(s)));
s = strdupa(".");
- assert_se(isempty(hostname_cleanup(s, false)));
+ assert_se(isempty(hostname_cleanup(s)));
s = strdupa("..");
- assert_se(isempty(hostname_cleanup(s, false)));
+ assert_se(isempty(hostname_cleanup(s)));
s = strdupa("foobar.");
- assert_se(streq(hostname_cleanup(s, false), "foobar"));
+ assert_se(streq(hostname_cleanup(s), "foobar"));
s = strdupa(".foobar");
- assert_se(streq(hostname_cleanup(s, false), "foobar"));
+ assert_se(streq(hostname_cleanup(s), "foobar"));
s = strdupa("foo..bar");
- assert_se(streq(hostname_cleanup(s, false), "foo.bar"));
+ assert_se(streq(hostname_cleanup(s), "foo.bar"));
s = strdupa("foo.bar..");
- assert_se(streq(hostname_cleanup(s, false), "foo.bar"));
+ assert_se(streq(hostname_cleanup(s), "foo.bar"));
s = strdupa("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
- assert_se(streq(hostname_cleanup(s, false), "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"));
+ assert_se(streq(hostname_cleanup(s), "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"));
}
static void test_read_hostname_config(void) {