From: Andrew Deason Date: Mon, 10 Feb 2014 22:23:07 +0000 (-0600) Subject: bozo: Constify bozo_Log 'format' argument X-Git-Tag: upstream/1.6.17^2~60 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f3131a3535d1871909aac0ea47fe8212f14fc31d;p=packages%2Fo%2Fopenafs.git 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. Reviewed-on: http://gerrit.openafs.org/10830 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk (cherry picked from commit ed1b1df3c8acf9a2c5d4dface88ac15dcb8d7a2e) Change-Id: I29fb3df82866dc8457d92a0b88eb02ae50879db7 Reviewed-on: http://gerrit.openafs.org/11931 Tested-by: BuildBot Reviewed-by: Perry Ruiter Reviewed-by: Jeffrey Altman Reviewed-by: Stephan Wiesand --- diff --git a/src/bozo/bosprototypes.h b/src/bozo/bosprototypes.h index 80cb226f7..7b84626ed 100644 --- a/src/bozo/bosprototypes.h +++ b/src/bozo/bosprototypes.h @@ -43,7 +43,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 95cf318ca..9f9f6fa63 100644 --- a/src/bozo/bosserver.c +++ b/src/bozo/bosserver.c @@ -1076,7 +1076,7 @@ main(int argc, char **argv, char **envp) } void -bozo_Log(char *format, ...) +bozo_Log(const char *format, ...) { char tdate[27]; time_t myTime;