- scan.c: use poll.h; removed useless cast
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Wed, 31 Dec 2014 14:42:24 +0000 (14:42 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Wed, 31 Dec 2014 14:42:24 +0000 (14:42 +0000)
- firedns.c: use poll.h

git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5227 82007160-df01-0410-b94d-b575c5fd34c7

src/firedns.c
src/scan.c

index 7012f2b6028d34c10dbce305850ea334c12a03cb..f698c011b87f98d776843c2696b5ca46ed734278 100644 (file)
@@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 #include <time.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/time.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
index 50c02f767b87c8d700f3775c95bab81cb7665766..fbde760e7a36a09a3eeaf1582c1d82f9f7f87dfa 100644 (file)
 
 #include <errno.h>
 #include <fcntl.h>
-
-#ifdef HAVE_SYS_POLL_H
-# include <sys/poll.h>
-#endif
+#include <poll.h>
 
 #include "compat.h"
 #include "config.h"
@@ -230,7 +227,7 @@ scan_init(void)
 
     /* add target strings */
     LIST_FOREACH(p2, sc->target_string->head)
-      opm_config(scs->scanner, OPM_CONFIG_TARGET_STRING, (char *) p2->data);
+      opm_config(scs->scanner, OPM_CONFIG_TARGET_STRING, p2->data);
 
     /* Setup callbacks */
     opm_callback(scs->scanner, OPM_CALLBACK_OPENPROXY, &scan_open_proxy, scs);