pkgsrc/net/openvpn-nagios/patches/patch-openvpn-nagios.c
joerg 167beab360 Don't call libtool --mode=finish without argument. Fix a sign cast to
avoid a clang warning made fatal by -Werror.
2013-03-26 23:32:49 +00:00

19 lines
450 B
C

$NetBSD: patch-openvpn-nagios.c,v 1.1 2013/03/26 23:32:50 joerg Exp $
--- openvpn-nagios.c.orig 2013-03-25 15:45:11.000000000 +0000
+++ openvpn-nagios.c
@@ -87,12 +87,11 @@ strmatch(s, match)
#endif
static time_t
-date_strtots(strdate)
- char *strdate;
+date_strtots(unsigned char *strdate)
{
struct tm tm;
- (void)strptime(strdate, "%y%m%d%H%M%SZ", &tm);
+ (void)strptime((char *)strdate, "%y%m%d%H%M%SZ", &tm);
return mktime(&tm);
}