From: Andrew Deason Date: Mon, 10 Feb 2014 22:23:07 +0000 (-0600) Subject: bozo: Constify bozo_Log 'format' argument X-Git-Tag: openafs-stable-1_8_0pre1~411 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=ed1b1df3c8acf9a2c5d4dface88ac15dcb8d7a2e bozo: Constify bozo_Log 'format' argument We clearly do not need to modify the format string; declare it const. This makes the signature of bozo_Log identical to FSLog, which can make it easier to use these functions interchangeably. Change-Id: I89ae9babec2c4e8714019f58fe29dacc7283ae15 Reviewed-on: http://gerrit.openafs.org/10830 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- diff --git a/src/bozo/bosprototypes.h b/src/bozo/bosprototypes.h index 5ccf059..b22ccff 100644 --- a/src/bozo/bosprototypes.h +++ b/src/bozo/bosprototypes.h @@ -39,7 +39,7 @@ int bnode_NewProc(struct bnode *abnode, char *aexecString, char *coreName, int bnode_StopProc(struct bnode_proc *aproc, int asignal); /* bosserver.c */ -void bozo_Log(char *format, ... ); +void bozo_Log(const char *format, ... ); int bozo_ReBozo(void); int WriteBozoFile(char *aname); int bozo_CreatePidFile(char *ainst, char *aname, pid_t apid); diff --git a/src/bozo/bosserver.c b/src/bozo/bosserver.c index 694fd76..07f966e 100644 --- a/src/bozo/bosserver.c +++ b/src/bozo/bosserver.c @@ -1152,7 +1152,7 @@ main(int argc, char **argv, char **envp) } void -bozo_Log(char *format, ...) +bozo_Log(const char *format, ...) { char tdate[27]; time_t myTime;