summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-30 19:08:57 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-30 19:08:57 +0200
commit818fcfb8139d43f2136452029ac320e48ec154f7 (patch)
tree36b62adbfcf5ce86629cb2ac821c371b38eeab05
parent3e091a82167f51b7d9abf00755bede9354932c6b (diff)
downloadsamba-818fcfb8139d43f2136452029ac320e48ec154f7.tar.gz
samba-818fcfb8139d43f2136452029ac320e48ec154f7.tar.bz2
samba-818fcfb8139d43f2136452029ac320e48ec154f7.zip
libcli/nbt/dns_hosts_file.c - change "ULONG_MAX" into "UINT32_MAX"
This fits better since the variable which is tested is of type "uint32_t".
-rw-r--r--libcli/nbt/dns_hosts_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/nbt/dns_hosts_file.c b/libcli/nbt/dns_hosts_file.c
index 6665a10293..810e4ebb0c 100644
--- a/libcli/nbt/dns_hosts_file.c
+++ b/libcli/nbt/dns_hosts_file.c
@@ -119,7 +119,7 @@ static bool getdns_hosts_fileent(TALLOC_CTX *ctx, XFILE *fp, char **pp_name, cha
continue;
}
*p_port = strtoul(port, NULL, 10);
- if (*p_port == ULONG_MAX) {
+ if (*p_port == UINT32_MAX) {
DEBUG(0, ("getdns_hosts_fileent: Ill formed hosts SRV record [%s] (invalid port: %s)\n",
line, port));
continue;