From: Andrew Deason Date: Thu, 10 May 2018 21:23:48 +0000 (-0500) Subject: ubik: Make udisk_Log* functions static X-Git-Tag: upstream/1.8.1_pre2^2~44 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=99f1df279d26fe82b21406f3bf987595fd049542;p=packages%2Fo%2Fopenafs.git ubik: Make udisk_Log* functions static Nothing uses the udisk_Log* functions outside of disk.c. Declare these static to make sure they stay that way, to make it easier to change their semantics. Reviewed-on: https://gerrit.openafs.org/13069 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk (cherry picked from commit f1d389e80367c7ea532441f9aa27a6cc3e2853a7) Change-Id: I9c1cae678fc099f1eabe4aa6a661dcbc4ea72648 Reviewed-on: https://gerrit.openafs.org/13119 Tested-by: BuildBot Reviewed-by: Andrew Deason Reviewed-by: Michael Meffie Reviewed-by: Benjamin Kaduk --- diff --git a/src/ubik/disk.c b/src/ubik/disk.c index 6f96efcea..a091e7f2b 100644 --- a/src/ubik/disk.c +++ b/src/ubik/disk.c @@ -109,7 +109,7 @@ udisk_Debug(struct ubik_debug *aparm) * Abort transaction: opcode \n * Write data: opcode, file, position, length, data bytes \n */ -int +static int udisk_LogOpcode(struct ubik_dbase *adbase, afs_int32 aopcode, int async) { struct ubik_stat ustat; @@ -139,7 +139,7 @@ udisk_LogOpcode(struct ubik_dbase *adbase, afs_int32 aopcode, int async) /*! * \brief Log a commit, never syncing. */ -int +static int udisk_LogEnd(struct ubik_dbase *adbase, struct ubik_version *aversion) { afs_int32 code; @@ -171,7 +171,7 @@ udisk_LogEnd(struct ubik_dbase *adbase, struct ubik_version *aversion) /*! * \brief Log a truncate operation, never syncing. */ -int +static int udisk_LogTruncate(struct ubik_dbase *adbase, afs_int32 afile, afs_int32 alength) { @@ -201,7 +201,7 @@ udisk_LogTruncate(struct ubik_dbase *adbase, afs_int32 afile, /*! * \brief Write some data to the log, never syncing. */ -int +static int udisk_LogWriteData(struct ubik_dbase *adbase, afs_int32 afile, void *abuffer, afs_int32 apos, afs_int32 alen) {