]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
viced: Rename fs_rxstat_userok
authorAndrew Deason <adeason@sinenomine.net>
Fri, 15 Jun 2012 21:55:16 +0000 (16:55 -0500)
committerDerrick Brashear <shadow@dementix.org>
Wed, 27 Jun 2012 12:36:31 +0000 (05:36 -0700)
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 <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/viced/viced.c

index efb4ef2f6d20dc05f64d930be4ba7d0108104d1a..9a406e4fcfba9597486347930593c1fdd8010ba3 100644 (file)
@@ -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);