[sr-dev] git:master: core: fixed compile warnings on mac os x

Daniel-Constantin Mierla miconda at gmail.com
Sun May 1 17:40:09 CEST 2011


Module: sip-router
Branch: master
Commit: c769479936c3671c4ad9fa4d9609c5b03a8a3191
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c769479936c3671c4ad9fa4d9609c5b03a8a3191

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Sat Apr 30 10:20:42 2011 +0200

core: fixed compile warnings on mac os x

---

 io_wait.h |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/io_wait.h b/io_wait.h
index 7220dd5..b7ae925 100644
--- a/io_wait.h
+++ b/io_wait.h
@@ -283,9 +283,9 @@ retry2:
 						io_wait_loop_kqueue EV_ERROR case */
 						if (unlikely(!(errno == EBADF || errno == ENOENT)))
 							BUG("kq_ev_change: kevent flush changes failed:"
-									" (unexpected error) %s [%d] (%d/%d)\n",
+									" (unexpected error) %s [%d] (%d/%lu)\n",
 										strerror(errno), errno,
-										r, h->kq_nchanges);
+										r, (unsigned long)h->kq_nchanges);
 						continue; /* skip over it */
 					}
 				}
@@ -1219,9 +1219,10 @@ again:
 					BUG("io_wait_loop_kqueue: unknown filter: kqueue: event "
 							"%d/%d: fd=%d, filter=%d, flags=0x%x, fflags=0x%x,"
 							" data=%lx, udata=%lx\n",
-					r, n, h->kq_array[r].ident, h->kq_array[r].filter,
+					r, n, (int)h->kq_array[r].ident, (int)h->kq_array[r].filter,
 					h->kq_array[r].flags, h->kq_array[r].fflags,
-					(long)h->kq_array[r].data, (long)h->kq_array[r].udata);
+					(unsigned long)h->kq_array[r].data,
+					(unsigned long)h->kq_array[r].udata);
 				}
 			}
 		}




More information about the sr-dev mailing list