Pārlūkot izejas kodu

Stop complaints on printf argument types on MacOS.

master
Richard Nyberg pirms 16 gadiem
vecāks
revīzija
f0bd2f35ce
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      btpd/btpd.c

+ 2
- 2
btpd/btpd.c Parādīt failu

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


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


||||||
x
 
000:0
Notiek ielāde…
Atcelt
Saglabāt