From 7ddb513bec854479fc9efb2a79044a978055d800 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 28 Nov 2007 16:27:46 +0000 Subject: keep keeping compilers happy Signed-off-by: Michael Krelin --- (limited to 'lib') diff --git a/lib/util.cc b/lib/util.cc index eacf6d7..ac70938 100644 --- a/lib/util.cc +++ b/lib/util.cc @@ -212,7 +212,7 @@ namespace opkele { long port = strtol(nptr,&eptr,10); if( (port>0) && (port<65535) && port!=(s?443:80) ) { char tmp[6]; - snprintf(tmp,sizeof(tmp),"%d",port); + snprintf(tmp,sizeof(tmp),"%ld",port); rv += ':'; rv += tmp; } if(ni==string::npos) { -- cgit v0.9.0.2