diff lib-src/gnuslib.c @ 363:972bbb6d6ca2 r21-1-11

Import from CVS: tag r21-1-11
author cvs
date Mon, 13 Aug 2007 10:59:28 +0200
parents 11cf20601dec
children cc15677e0335
line wrap: on
line diff
--- a/lib-src/gnuslib.c	Mon Aug 13 10:58:41 2007 +0200
+++ b/lib-src/gnuslib.c	Mon Aug 13 10:59:28 2007 +0200
@@ -76,10 +76,8 @@
 
 char *progname = NULL;
 
-int make_connection(hostarg, portarg, s)
-     char *hostarg;
-     int portarg;
-     int *s;
+int
+make_connection (char *hostarg, int portarg, int *s)
 {
 #ifdef INTERNET_DOMAIN_SOCKETS
   char *ptr;
@@ -196,9 +194,8 @@
 /*
   send_string -- send string to socket.
 */
-void send_string(s,msg)
-     int s;
-     CONST char *msg;
+void
+send_string (int s, CONST char *msg)
 {
 #if 0
   if (send(s,msg,strlen(msg),0) < 0) {
@@ -286,8 +283,8 @@
   internet_addr -- return the internet addr of the hostname or
                    internet address passed. Return -1 on error.
 */
-int internet_addr(host)
-     char *host;
+int
+internet_addr (char *host)
 {
   struct hostent *hp;		/* pointer to host info for remote host */
   IN_ADDR numeric_addr;		/* host address */
@@ -395,9 +392,8 @@
   disconnect_from_server -- inform the server that sending has finished, and wait for
                             its reply.
 */
-void disconnect_from_server(s,echo)
-     int s;
-     int echo;
+void
+disconnect_from_server (int s, int echo)
 {
 #if 0
   char buffer[REPLYSIZ+1];