Skip to content

Commit 293d2f9

Browse files
author
George Wang
committed
Address some compiler warnings.
1 parent 78fc12a commit 293d2f9

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

sapi/litespeed/lsapi_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "zend.h"
2424
#include "ext/standard/basic_functions.h"
2525
#include "ext/standard/info.h"
26+
#include "ext/standard/head.h"
2627
#include "lsapilib.h"
2728
#include "lsapi_main_arginfo.h"
2829

sapi/litespeed/lscriu.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ static void LSCRIU_Restored_Error(int iFatal, char *format, ...) {
403403
}
404404
}
405405
#else // no debugging
406-
static void inline LSCRIU_Debugging(void) {}
407-
static void inline LSCRIU_Restored_Error(int iFatal, char *format, ...) {}
406+
static inline void LSCRIU_Debugging(void) {}
407+
static inline void LSCRIU_Restored_Error(int iFatal, char *format, ...) {}
408408
#endif
409409

410410

@@ -626,12 +626,14 @@ static int LSCRIU_Init_Env_Parameters(void)
626626
gc_type == CRIU_GCOUNTER_SIG ? "signals" : "pipe");
627627
lsapi_criu_signal(SIGUSR2, lsapi_siguser2);
628628
}
629-
else
629+
else {
630630
lscriu_dbg("LSCRIU (%d): Use shared memory\n", getpid());
631-
LSCRIU_Set_Global_Counter_Type(gc_type);
631+
}
632+
LSCRIU_Set_Global_Counter_Type(gc_type);
632633
}
633-
else
634+
else {
634635
lscriu_dbg("LSCRIU (%d): NOT Listening\n", getpid());
636+
}
635637

636638
char *criu_mode = NULL;
637639
criu_mode = getenv("LSAPI_CRIU");

0 commit comments

Comments
 (0)