Skip to content

Commit 0d4d751

Browse files
committed
Make code compatible with compilers prior to C23
1 parent f002930 commit 0d4d751

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main-cli.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,14 @@ static struct option options[] = {
5555
static void
5656
signal_handler (int signum)
5757
{
58+
int r;
59+
5860
switch (signum)
5961
{
6062
case SIGHUP:
6163
case SIGINT:
6264
case SIGTERM:
6365
case SIGTSTP:
64-
int r;
6566
pthread_spin_lock (&lock);
6667
stop = 1;
6768
r = running;

0 commit comments

Comments
 (0)