Procházet zdrojové kódy

- fixed compiler warnings

Jan Janak před 20 roky
rodič
revize
ba1866be43
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      utils/serunix/serunix.c

+ 2 - 1
utils/serunix/serunix.c

@@ -28,6 +28,7 @@
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <sys/un.h>
@@ -57,7 +58,7 @@ int main(int argc, char** argv)
 {
 {
 	int sock, len, from_len;
 	int sock, len, from_len;
 	struct sockaddr_un from, to;
 	struct sockaddr_un from, to;
-	char* name, *s;
+	char* name;
 	static char buffer[BUF_SIZE];
 	static char buffer[BUF_SIZE];
 
 
 	if (argc != 2) {
 	if (argc != 2) {