Browse code

core: fixed compile warnings on mac os x

Daniel-Constantin Mierla authored on 30/04/2011 08:20:42
Showing 1 changed files
... ...
@@ -283,9 +283,9 @@ retry2:
283 283
 						io_wait_loop_kqueue EV_ERROR case */
284 284
 						if (unlikely(!(errno == EBADF || errno == ENOENT)))
285 285
 							BUG("kq_ev_change: kevent flush changes failed:"
286
-									" (unexpected error) %s [%d] (%d/%d)\n",
286
+									" (unexpected error) %s [%d] (%d/%lu)\n",
287 287
 										strerror(errno), errno,
288
-										r, h->kq_nchanges);
288
+										r, (unsigned long)h->kq_nchanges);
289 289
 						continue; /* skip over it */
290 290
 					}
291 291
 				}
... ...
@@ -1219,9 +1219,10 @@ again:
1219 1219
 					BUG("io_wait_loop_kqueue: unknown filter: kqueue: event "
1220 1220
 							"%d/%d: fd=%d, filter=%d, flags=0x%x, fflags=0x%x,"
1221 1221
 							" data=%lx, udata=%lx\n",
1222
-					r, n, h->kq_array[r].ident, h->kq_array[r].filter,
1222
+					r, n, (int)h->kq_array[r].ident, (int)h->kq_array[r].filter,
1223 1223
 					h->kq_array[r].flags, h->kq_array[r].fflags,
1224
-					(long)h->kq_array[r].data, (long)h->kq_array[r].udata);
1224
+					(unsigned long)h->kq_array[r].data,
1225
+					(unsigned long)h->kq_array[r].udata);
1225 1226
 				}
1226 1227
 			}
1227 1228
 		}