diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:26 +0000 |
commit | c4e8a3222648fcf22ca207f1815ebbf7cd144eeb (patch) | |
tree | 93d5c6aa93d9987680dd1adad5685e2ad698f223 /ui/persfilepath_opt.c | |
parent | Adding upstream version 4.2.6. (diff) | |
download | wireshark-upstream.tar.xz wireshark-upstream.zip |
Adding upstream version 4.4.0.upstream/4.4.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/persfilepath_opt.c')
-rw-r--r-- | ui/persfilepath_opt.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/persfilepath_opt.c b/ui/persfilepath_opt.c index feaeb74b..ee0d420f 100644 --- a/ui/persfilepath_opt.c +++ b/ui/persfilepath_opt.c @@ -24,14 +24,14 @@ * process command line option that affects the paths of the directories * used for personal files (configuration, saved captures) */ -gboolean +bool persfilepath_opt(int opt _U_, const char *optstr) { - gchar *p, *colonp; + char *p, *colonp; colonp = strchr(optstr, ':'); if (colonp == NULL) { - return FALSE; + return false; } p = colonp; @@ -51,7 +51,7 @@ persfilepath_opt(int opt _U_, const char *optstr) * looks correct. */ *colonp = ':'; - return FALSE; + return false; } /* directory should be existing */ @@ -63,7 +63,7 @@ persfilepath_opt(int opt _U_, const char *optstr) * looks correct. */ *colonp = ':'; - return FALSE; + return false; } if (strcmp(optstr,"persconf") == 0) { @@ -72,8 +72,8 @@ persfilepath_opt(int opt _U_, const char *optstr) set_persdatafile_dir(p); } else { /* XXX - might need to add the temp file path */ - return FALSE; + return false; } *colonp = ':'; /* put the colon back */ - return TRUE; + return true; } |