]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/sockhelp.h
Fixed a bunch of compilation warnings about deprecated const char *
[irc/gameservirc.git] / gameserv / sockhelp.h
index b7ec8a662dc5c5b7d14221acb798df80914762ba..64b89939ecfc27ad7c7e44ee20601451b0c32ee0 100644 (file)
 #include <netdb.h>
 #include <arpa/inet.h>
 
-int atoport( char *service, char *proto);
+#include <string>
+using std::string;
+
+int atoport(const string &service, const string &proto);
 struct in_addr *atoaddr(char *address);
 int get_connection(int socket_type, u_short port, int *listener);
 int make_connection(char *service, int type, char *netaddress);