From 7ca001077379de73e89d32a9a9c6d773cd3aa8c3 Mon Sep 17 00:00:00 2001 From: Nikolai Kostrigin Date: Fri, 18 Nov 2022 14:23:42 +0300 Subject: [PATCH] fakesudo.c: fix build with gcc10 C99 doesn't allow to put declararion right after a label, so put an empty statement between them. fakesudo.c:119:5: error: a label can only be part of a statement and a declaration is not a statement 119 | char hn[HOST_NAME_MAX] = {}; | ^~~~ Signed-off-by: Nikolai Kostrigin --- fakesudo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fakesudo.c b/fakesudo.c index 6b1e115..1befacc 100644 --- a/fakesudo.c +++ b/fakesudo.c @@ -115,7 +115,7 @@ int main(int argc, char **argv) case 'T': printf("fakesudo: you are not permitted to use the -%c option\n", ch); exit(1); - case 'l': + case 'l': ; char hn[HOST_NAME_MAX] = {}; gethostname(hn, sizeof hn); printf("User %s may run the following commands on %s:\n", me->pw_name, hn); -- 2.33.5