rc-update: style fixes

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2022-03-31 07:25:51 +01:00 committed by William Hubbs
parent d0a2e30137
commit e7f45ce31f

View File

@ -183,9 +183,9 @@ show(RC_STRINGLIST *runlevels, bool verbose)
} else { } else {
l = strlen(runlevel->value); l = strlen(runlevel->value);
buffer = xmalloc(l+1); buffer = xmalloc(l+1);
memset (buffer, ' ', l); memset(buffer, ' ', l);
buffer[l] = 0; buffer[l] = 0;
rc_stringlist_add (in, buffer); rc_stringlist_add(in, buffer);
free(buffer); free(buffer);
} }
} }
@ -194,12 +194,12 @@ show(RC_STRINGLIST *runlevels, bool verbose)
printf(" %20s |", service->value); printf(" %20s |", service->value);
TAILQ_FOREACH(runlevel, in, entries) TAILQ_FOREACH(runlevel, in, entries)
printf (" %s", runlevel->value); printf (" %s", runlevel->value);
printf ("\n"); printf("\n");
} }
rc_stringlist_free(in); rc_stringlist_free(in);
} }
rc_stringlist_free (services); rc_stringlist_free(services);
} }
#define DOADD (1 << 1) #define DOADD (1 << 1)