gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r20503 - gnunet-fuse/src/ext


From: gnunet
Subject: [GNUnet-SVN] r20503 - gnunet-fuse/src/ext
Date: Wed, 14 Mar 2012 18:41:28 +0100

Author: mauricio
Date: 2012-03-14 18:41:28 +0100 (Wed, 14 Mar 2012)
New Revision: 20503

Modified:
   gnunet-fuse/src/ext/gnunet-fuse.c
Log:
at least somehow working



Modified: gnunet-fuse/src/ext/gnunet-fuse.c
===================================================================
--- gnunet-fuse/src/ext/gnunet-fuse.c   2012-03-14 17:28:34 UTC (rev 20502)
+++ gnunet-fuse/src/ext/gnunet-fuse.c   2012-03-14 17:41:28 UTC (rev 20503)
@@ -308,13 +308,16 @@
      const struct GNUNET_CONFIGURATION_Handle *cfg)
 {
        ret = 0;
-       int c = 0;
-       while (args[c] != NULL)
+       int argc = 0;
+       while (args[argc] != NULL)
        {
-               GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "`%s'\n", args[c]);
-               c++;
+               GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "`%s'\n", args[argc]);
+               argc++;
        }
-       fuse_main(c, args, &fops, NULL);
+       if (argc > 0)
+               fuse_main(argc, args, &fops, NULL);
+       else
+               GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "No fuse arguments 
given\n");
 }
 
 /**




reply via email to

[Prev in Thread] Current Thread [Next in Thread]