diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-12-16 18:32:48 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-12-16 18:32:48 +0000 |
commit | 844d003854c3632d2298ae7c3f02ff5ce4c1f988 (patch) | |
tree | a949c9c2a09634645efb009b9a25fa3a4d95543a /main/charybdis/fix-ratbox-errors.patch | |
parent | 8db768693adb0c03dba1ce5b1b4e1b48144df011 (diff) | |
download | aports-844d003854c3632d2298ae7c3f02ff5ce4c1f988.tar.bz2 aports-844d003854c3632d2298ae7c3f02ff5ce4c1f988.tar.xz |
main/charybdis: fix musl build and some potentially harmful warnings
Diffstat (limited to 'main/charybdis/fix-ratbox-errors.patch')
-rw-r--r-- | main/charybdis/fix-ratbox-errors.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/main/charybdis/fix-ratbox-errors.patch b/main/charybdis/fix-ratbox-errors.patch new file mode 100644 index 0000000000..a22c562f55 --- /dev/null +++ b/main/charybdis/fix-ratbox-errors.patch @@ -0,0 +1,33 @@ +--- charybdis-3.4.2.orig/libratbox/src/commio.c ++++ charybdis-3.4.2/libratbox/src/commio.c +@@ -2221,7 +2221,7 @@ + char empty = '0'; + char *buf; + +- memset(&msg, 0, sizeof(&msg)); ++ memset(&msg, 0, sizeof(msg)); + if(datasize == 0) + { + iov[0].iov_base = ∅ +--- charybdis-3.4.2.orig/libratbox/src/epoll.c ++++ charybdis-3.4.2/libratbox/src/epoll.c +@@ -405,7 +405,7 @@ + struct sigevent ev; + struct itimerspec ts; + +- memset(&ev, 0, sizeof(&ev)); ++ memset(&ev, 0, sizeof(ev)); + event->comm_ptr = rb_malloc(sizeof(timer_t)); + id = event->comm_ptr; + ev.sigev_notify = SIGEV_SIGNAL; +--- charybdis-3.4.2.orig/libratbox/src/sigio.c ++++ charybdis-3.4.2/libratbox/src/sigio.c +@@ -412,7 +412,7 @@ + if(can_do_event <= 0) + return 0; + +- memset(&ev, 0, sizeof(&ev)); ++ memset(&ev, 0, sizeof(ev)); + event->comm_ptr = rb_malloc(sizeof(timer_t)); + id = event->comm_ptr; + ev.sigev_notify = SIGEV_SIGNAL; |