int sock_connect(char *host, char *service, char *protocol);
int sock_read(int sock, char *buf, int bytes);
-int sock_write(int sock, *buf, int nbytes);
-int *sock_gets(int sock, *buf);
-int sock_puts(int sock, *buf);
+int sock_write(int sock, char *buf, int nbytes);
+int sock_gets(int sock, char *buf);
+int sock_puts(int sock, char *buf);
/*
* This looks dumb, but it's being done for future portability