Fix build with clang.

PR:		ports/158177 (after fixing a typo :)
Submitted by:	Niclas Zeising <niclas.zeising@gmail.com>
This commit is contained in:
Juergen Lock 2011-06-22 23:20:04 +00:00
parent d62766a5e4
commit db268f50e5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276088
2 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,8 @@ COMMENT= A fast & configurable redirector for the Squid
RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid
USE_CSTD= gnu89
SQUID_UID?= squid
SQUID_GID?= squid

View File

@ -0,0 +1,11 @@
--- squirm.c.orig 2011-06-23 00:02:30.000000000 +0200
+++ squirm.c 2011-06-23 00:02:46.000000000 +0200
@@ -88,7 +88,7 @@
print buff to stdout
*/
if(strlen(in_buff->url) <= 4) {
- logprint(LOG_FAIL, "strlen in_buff->url = [%d] in main()\n",
+ logprint(LOG_FAIL, "strlen in_buff->url = [%zu] in main()\n",
strlen(in_buff->url));
return 1;
}