]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
bozo: Constify bozo_Log 'format' argument
authorAndrew Deason <adeason@sinenomine.net>
Mon, 10 Feb 2014 22:23:07 +0000 (16:23 -0600)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 7 Oct 2015 10:04:08 +0000 (06:04 -0400)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit ed1b1df3c8acf9a2c5d4dface88ac15dcb8d7a2e)

Change-Id: I29fb3df82866dc8457d92a0b88eb02ae50879db7
Reviewed-on: http://gerrit.openafs.org/11931
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Perry Ruiter <pruiter@sinenomine.net>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/bozo/bosprototypes.h
src/bozo/bosserver.c

index 80cb226f75c01262760d6360643d0907659f7302..7b84626ed0cd6566bdf3f3fe8176dd517605a59c 100644 (file)
@@ -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);
index 95cf318caaa60985fa06e49849ee4b2e9d33f5bf..9f9f6fa633c5dd16abc66bc76936e67d62c2e23c 100644 (file)
@@ -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;