bozo: Constify bozo_Log 'format' argument
authorAndrew Deason <adeason@sinenomine.net>
Mon, 10 Feb 2014 22:23:07 +0000 (16:23 -0600)
committerJeffrey Altman <jaltman@your-file-system.com>
Mon, 5 Jan 2015 02:48:03 +0000 (21:48 -0500)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>

src/bozo/bosprototypes.h
src/bozo/bosserver.c

index 5ccf059..b22ccff 100644 (file)
@@ -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);
index 694fd76..07f966e 100644 (file)
@@ -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;