summaryrefslogtreecommitdiffstats
path: root/ui/persfilepath_opt.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
commit9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch)
tree2784370cda9bbf2da9114d70f05399c0b229d28c /ui/persfilepath_opt.c
parentAdding debian version 4.2.6-1. (diff)
downloadwireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.tar.xz
wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.zip
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/persfilepath_opt.c')
-rw-r--r--ui/persfilepath_opt.c14
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;
}