diff options
| author | Richard Nyberg <rnyberg@murmeldjur.se> | 2009-01-29 16:43:19 +0100 |
|---|---|---|
| committer | Richard Nyberg <rnyberg@murmeldjur.se> | 2009-01-29 16:43:19 +0100 |
| commit | f0bd2f35ce061a104cd3f220903b16eac95cba39 (patch) | |
| tree | 046447ca80bb7637c6050e9c8362db0223560f08 | |
| parent | 3b6ae02d52368afbc66c5d3b0de95cb4805151cd (diff) | |
| download | btpd-f0bd2f35ce061a104cd3f220903b16eac95cba39.tar.gz btpd-f0bd2f35ce061a104cd3f220903b16eac95cba39.zip | |
Stop complaints on printf argument types on MacOS.
| -rw-r--r-- | btpd/btpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/btpd/btpd.c b/btpd/btpd.c index d3ee071..d193f7e 100644 --- a/btpd/btpd.c +++ b/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'; |