Skip to content

Commit 4e60878

Browse files
committed
common/common.c: satisfy compilers where default char is signed [#3379]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent e16e21d commit 4e60878

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

common/common.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,13 +1017,15 @@ void chroot_start(const char *path)
10171017
}
10181018

10191019
/* In forking, assume process name does not change (PID might); cache it */
1020-
static char *myProcName = NULL, procname_cleanup_registered = 0;
1020+
static char *myProcName = NULL;
1021+
static int procname_cleanup_registered = 0;
10211022
static const char *myProcBaseName = NULL;
10221023

10231024
/* We also keep a buffer with prefixed colon for debug printouts.
10241025
* Var/method used in procname_cleanup(), implemented further in the file */
10251026
static char *proctag = NULL, *proctag_for_upsdebug = NULL,
1026-
*proctag_lib = NULL, proctag_cleanup_registered = 0;
1027+
*proctag_lib = NULL;
1028+
static int proctag_cleanup_registered = 0;
10271029
static void proctag_cleanup(void);
10281030

10291031
static void procname_cleanup(void) {

0 commit comments

Comments
 (0)