Browse code

- warning fixes solaris gcc 3.2/sun cc

Andrei Pelinescu-Onciul authored on 12/11/2003 20:00:10
Showing 2 changed files
... ...
@@ -56,7 +56,7 @@ int recv_all(int socket, void* data, int data_len)
56 56
 	
57 57
 	b_read=0;
58 58
 	do{
59
-		n=recv(socket, data+b_read, data_len-b_read, MSG_WAITALL);
59
+		n=recv(socket, (char*)data+b_read, data_len-b_read, MSG_WAITALL);
60 60
 		if (n<0){
61 61
 			/* error */
62 62
 			if (errno==EINTR) continue; /* signal, try again */
... ...
@@ -63,7 +63,7 @@ struct subst_expr{
63 63
 
64 64
 struct replace_lst{
65 65
 	int offset;
66
-	int size;   /* at offset, delete size bytes and replace them with rpl */;
66
+	int size;   /* at offset, delete size bytes and replace them with rpl */
67 67
 	str rpl;
68 68
 	struct replace_lst *next;
69 69
 };