* (move this e.g. to main.c and have set_persconffile_dir() instead in this file?)
*/
int
-filesystem_opt(int opt _U_, const char *optarg)
+filesystem_opt(int opt _U_, const char *optstr)
{
gchar *p, *colonp;
- colonp = strchr(optarg, ':');
+ colonp = strchr(optstr, ':');
if (colonp == NULL) {
return 1;
}
* allow it here).
*/
while (isspace((guchar)*p))
- p++;
+ p++;
if (*p == '\0') {
/*
* Put the colon back, so if our caller uses, in an
return 1;
}
- if (strcmp(optarg,"persconf") == 0) {
+ if (strcmp(optstr,"persconf") == 0) {
persconffile_dir = p;
- } else if (strcmp(optarg,"persdata") == 0) {
+ } else if (strcmp(optstr,"persdata") == 0) {
persdatafile_dir = p;
/* XXX - might need to add the temp file path */
} else {
/*
* process command line option belonging to the filesystem settings
*/
-extern int filesystem_opt(int opt, const char *optarg);
+extern int filesystem_opt(int opt, const char *optstr);
/*
* Return an error message for UNIX-style errno indications on open or