summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index 41832d6..9eb4337 100644
--- a/src/util.c
+++ b/src/util.c
@@ -183,7 +183,7 @@ int dcc_getenv_bool(const char *name, int default_value)
}
-#define IS_LEGAL_DOMAIN_CHAR(c) (isalnum(c) || ((c) == '-') || ((c) == '.'))
+#define IS_LEGAL_DOMAIN_CHAR(c) (isalnum((uint8_t)c) || ((c) == '-') || ((c) == '.'))
/* Copy domain part of hostname to static buffer.
* If hostname has no domain part, returns -1.
@@ -831,7 +831,7 @@ int dcc_tokenize_string(const char *input, char ***argv_ptr)
/* Count the spaces in the string. */
for (for_count = input_copy; *for_count; for_count++)
- if (isspace(*for_count))
+ if (isspace((uint8_t)*for_count))
n_spaces++;
/* The maximum number of space-delimited strings we
@@ -989,7 +989,7 @@ union sockaddr_union {
struct sockaddr_storage storage;
};
-int sd_is_socket(int fd, int family, int type, int listening) {
+int not_sd_is_socket(int fd, int family, int type, int listening) {
int r;
if (family < 0)