diff options
| author | Arthur de Jong <arthur@arthurdejong.org> | 2013-10-29 20:01:30 +0100 |
|---|---|---|
| committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-10-29 23:20:01 +0100 |
| commit | f8af48faa18b6d9017ea64f4df2d6ee2b1743df3 (patch) | |
| tree | c27c3d3932b850c65854ca4b855fbb68d262207b /nslcd/service.c | |
| parent | 88801f9e5a01e580adae4f386c0c755fb2a17b79 (diff) | |
Fix a number of compiler warnings
This includes a number of small fixes for issues that were formerly
masked by the incorrect AC_LANG_PROGRAM check.
Diffstat (limited to 'nslcd/service.c')
| -rw-r--r-- | nslcd/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nslcd/service.c b/nslcd/service.c index 187bce0..673aac4 100644 --- a/nslcd/service.c +++ b/nslcd/service.c @@ -173,7 +173,7 @@ static int write_service(TFILE *fp, MYLDAP_ENTRY *entry, myldap_get_dn(entry), attmap_service_ipServicePort); return 0; } - else if ((errno != 0) || (port <= 0) || (port > UINT16_MAX)) + else if ((errno != 0) || (port <= 0) || (port > (long)UINT16_MAX)) { log_log(LOG_WARNING, "%s: %s: out of range", myldap_get_dn(entry), attmap_service_ipServicePort); |
