chiark / gitweb /
resolved: MX records
[elogind.git] / src / systemctl / systemctl.c
index 21e33d5bfc9607de6b4c8066bdddf6f850126d31..8ec0db2b2d48df51edb0c5f0c5001d4e171edde0 100644 (file)
@@ -5627,18 +5627,17 @@ static int runlevel_help(void) {
         return 0;
 }
 
-static int help_types(void) {
+static void help_types(void) {
         int i;
         const char *t;
 
-        puts("Available unit types:");
+        if (!arg_no_legend)
+                puts("Available unit types:");
         for (i = 0; i < _UNIT_TYPE_MAX; i++) {
                 t = unit_type_to_string(i);
                 if (t)
                         puts(t);
         }
-
-        return 0;
 }
 
 static int systemctl_parse_argv(int argc, char *argv[]) {