summaryrefslogtreecommitdiff
path: root/xenodm
diff options
context:
space:
mode:
Diffstat (limited to 'xenodm')
-rw-r--r--xenodm/resource.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/xenodm/resource.c b/xenodm/resource.c
index f1b220b..a079bb9 100644
--- a/xenodm/resource.c
+++ b/xenodm/resource.c
@@ -45,11 +45,11 @@ char *servers;
int request_port;
int debugLevel;
char *errorLogFile;
-int daemonMode;
-int sourceAddress;
+bool daemonMode;
+bool sourceAddress;
char *authDir;
-int autoRescan;
-int removeDomainname;
+bool autoRescan;
+bool removeDomainname;
char **exportList;
#define DM_STRING 0
@@ -267,11 +267,11 @@ GetResource (
if (!strcmp (str_buf, "true") ||
!strcmp (str_buf, "on") ||
!strcmp (str_buf, "yes"))
- *((int *) valuep) = 1;
+ *((bool *) valuep) = true;
else if (!strcmp (str_buf, "false") ||
!strcmp (str_buf, "off") ||
!strcmp (str_buf, "no"))
- *((int *) valuep) = 0;
+ *((bool *) valuep) = false;
break;
case DM_ARGV:
freeArgs (*(char ***) valuep);