[fedfs-utils] [PATCH 01/11] fedfsd: Use correct naming convention for the getopts variables
Chuck Lever
chuck.lever at oracle.com
Fri Oct 19 14:07:45 PDT 2012
Clean up incorrect variable naming introduced by commit 0520ee72
"Initial commit" March 29, 2011.
Signed-off-by: Chuck Lever <chuck.lever at oracle.com>
---
src/fedfsd/main.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/fedfsd/main.c b/src/fedfsd/main.c
index eb7ab48..f0a39d6 100644
--- a/src/fedfsd/main.c
+++ b/src/fedfsd/main.c
@@ -50,12 +50,12 @@
/**
* Short form command line options
*/
-static const char fedfs_opts[] = "?dFg:o:u:";
+static const char fedfsd_opts[] = "?dFg:o:u:";
/**
* Long form command line options
*/
-static const struct option fedfs_longopts[] =
+static const struct option fedfsd_longopts[] =
{
{ "debug", 0, NULL, 'd', },
{ "foreground", 0, NULL, 'F', },
@@ -134,8 +134,8 @@ int main(int argc, char **argv)
FEDFS_USER, uid, gid);
}
- while ((arg = getopt_long(argc, argv, fedfs_opts,
- fedfs_longopts, NULL)) != EOF) {
+ while ((arg = getopt_long(argc, argv, fedfsd_opts,
+ fedfsd_longopts, NULL)) != EOF) {
switch (arg) {
case 'd':
xlog_config(D_ALL, 1);
More information about the fedfs-utils-devel
mailing list