trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wei...@apache.org
Subject git commit: avoid the compiling warning on my 32bit system.
Date Fri, 20 Jun 2014 06:54:59 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master c524d54cb -> 26c7f37fe


avoid the compiling warning on my 32bit system.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/26c7f37f
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/26c7f37f
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/26c7f37f

Branch: refs/heads/master
Commit: 26c7f37fe12618a479e99a88c57b69176067e35d
Parents: c524d54
Author: weijin <taorui.wj@taobao.com>
Authored: Fri Jun 20 14:53:16 2014 +0800
Committer: weijin <taorui.wj@taobao.com>
Committed: Fri Jun 20 14:53:16 2014 +0800

----------------------------------------------------------------------
 proxy/Main.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/26c7f37f/proxy/Main.cc
----------------------------------------------------------------------
diff --git a/proxy/Main.cc b/proxy/Main.cc
index 55f6339..40dfcf8 100644
--- a/proxy/Main.cc
+++ b/proxy/Main.cc
@@ -805,7 +805,7 @@ adjust_sys_settings(void)
     ats_mallopt(ATS_MMAP_MAX, mmap_max);
 
   if ((fd = fopen("/proc/sys/fs/file-max","r"))) {
-    ATS_UNUSED_RETURN(fscanf(fd, "%lu", &lim.rlim_max));
+    ATS_UNUSED_RETURN(fscanf(fd, "%" PRIu64 "", &lim.rlim_max));
     fclose(fd);
     REC_ReadConfigFloat(file_max_pct, "proxy.config.system.file_max_pct");
     lim.rlim_cur = lim.rlim_max = static_cast<rlim_t>(lim.rlim_max * file_max_pct);


Mime
View raw message