Updated Branches: refs/heads/master 9e6b94451 -> a457069a9
Declare TSTextLogObjectWrite format string as const Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/a457069a Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/a457069a Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/a457069a Branch: refs/heads/master Commit: a457069a9db461b6899767acf4d51a2e179bf0ab Parents: 9e6b944 Author: James Peach <[email protected]> Authored: Fri Oct 5 19:08:01 2012 -0700 Committer: James Peach <[email protected]> Committed: Fri Oct 5 19:08:01 2012 -0700 ---------------------------------------------------------------------- proxy/InkAPI.cc | 2 +- proxy/api/ts/ts.h.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/a457069a/proxy/InkAPI.cc ---------------------------------------------------------------------- diff --git a/proxy/InkAPI.cc b/proxy/InkAPI.cc index dd4ff2d..dbb33b2 100644 --- a/proxy/InkAPI.cc +++ b/proxy/InkAPI.cc @@ -6813,7 +6813,7 @@ TSTextLogObjectCreate(const char *filename, int mode, TSTextLogObject *new_objec } TSReturnCode -TSTextLogObjectWrite(TSTextLogObject the_object, char *format, ...) +TSTextLogObjectWrite(TSTextLogObject the_object, const char *format, ...) { sdk_assert(sdk_sanity_check_iocore_structure(the_object) == TS_SUCCESS); sdk_assert(sdk_sanity_check_null_ptr((void*)format) == TS_SUCCESS); http://git-wip-us.apache.org/repos/asf/trafficserver/blob/a457069a/proxy/api/ts/ts.h.in ---------------------------------------------------------------------- diff --git a/proxy/api/ts/ts.h.in b/proxy/api/ts/ts.h.in index e097319..7763dc9 100644 --- a/proxy/api/ts/ts.h.in +++ b/proxy/api/ts/ts.h.in @@ -3043,7 +3043,7 @@ extern "C" log write buffer). This error is very unusual. */ - tsapi TSReturnCode TSTextLogObjectWrite(TSTextLogObject the_object, char* format, ...) TS_PRINTFLIKE(2, 3); + tsapi TSReturnCode TSTextLogObjectWrite(TSTextLogObject the_object, const char* format, ...) TS_PRINTFLIKE(2, 3); /** This immediately flushes the contents of the log write buffer for
