openbsd-ports/net/ntp/patches/patch-ntpd_ntp_scanner_c

13 lines
314 B
Plaintext

$OpenBSD: patch-ntpd_ntp_scanner_c,v 1.2 2010/07/10 19:48:32 naddy Exp $
--- ntpd/ntp_scanner.c.orig Sat Jul 10 18:30:24 2010
+++ ntpd/ntp_scanner.c Sat Jul 10 18:30:39 2010
@@ -351,7 +351,7 @@ is_special(
int ch
)
{
- return (int)strchr(special_chars, ch);
+ return strchr(special_chars, ch) != NULL;
}