浏览代码

Stop complaints on printf argument types on MacOS.

master
Richard Nyberg 16 年前
父节点
当前提交
f0bd2f35ce
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      btpd/btpd.c

+ 2
- 2
btpd/btpd.c 查看文件

@@ -107,8 +107,8 @@ btpd_init(void)
sigaction(SIGINT, &sa, NULL);

gettimeofday(&now, NULL);
n = snprintf(idcon, sizeof(idcon), "%ld%ld%d", now.tv_sec, now.tv_usec,
net_port);
n = snprintf(idcon, sizeof(idcon), "%ld%ld%d", (long)now.tv_sec,
(long)now.tv_usec, net_port);
if (n < sizeof(idcon))
gethostname(idcon + n, sizeof(idcon) - n);
idcon[sizeof(idcon) - 1] = '\0';


正在加载...
取消
保存