From 7a875f639f61966f2d327f929305091d2678e99a Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Fri, 15 Jun 2012 16:55:16 -0500 Subject: [PATCH] viced: Rename fs_rxstat_userok The fs_rxstat_userok function can be used for other purposes; give it a more general name. Change-Id: Ic94e8121ac8b856b288712d486e34556be8250d6 Reviewed-on: http://gerrit.openafs.org/7571 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- src/viced/viced.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/viced/viced.c b/src/viced/viced.c index efb4ef2f6..9a406e4fc 100644 --- a/src/viced/viced.c +++ b/src/viced/viced.c @@ -279,9 +279,9 @@ CheckDescriptors_Signal(int x) CheckDescriptors(NULL); } -/* check whether caller is authorized to manage RX statistics */ +/* check whether caller is authorized to perform admin operations */ int -fs_rxstat_userok(struct rx_call *call) +viced_SuperUser(struct rx_call *call) { return afsconf_SuperUser(confDir, call, NULL); } @@ -2041,7 +2041,7 @@ main(int argc, char *argv[]) } /* allow super users to manage RX statistics */ - rx_SetRxStatUserOk(fs_rxstat_userok); + rx_SetRxStatUserOk(viced_SuperUser); CV_INIT(&fsync_cond, "fsync", CV_DEFAULT, 0); MUTEX_INIT(&fsync_glock_mutex, "fsync", MUTEX_DEFAULT, 0); -- 2.39.5