From ed1b1df3c8acf9a2c5d4dface88ac15dcb8d7a2e Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Mon, 10 Feb 2014 16:23:07 -0600 Subject: [PATCH] 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 --- src/bozo/bosprototypes.h | 2 +- src/bozo/bosserver.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bozo/bosprototypes.h b/src/bozo/bosprototypes.h index 5ccf059ea..b22ccffa9 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 694fd7616..07f966e79 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; -- 2.39.5