[dbench @ tridge@samba.org-20070717123945-34sbk2w6rhc3wdm9]
[tridge/dbench.git] / socklib.c
index aa82dbd2d7a3c82fa84703664cc06f280fa79266..1059d70d33367121eed37555864af5bb0e6360ed 100644 (file)
--- a/socklib.c
+++ b/socklib.c
@@ -4,7 +4,7 @@
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "dbench.h"
@@ -52,7 +51,7 @@ int open_socket_in(int type, int port)
 
 /* open a socket to a tcp remote host with the specified port 
    based on code from Warren */
-int open_socket_out(char *host, int port)
+int open_socket_out(const char *host, int port)
 {
        int type = SOCK_STREAM;
        struct sockaddr_in sock_out;