Browse Source

- fixed warnings due to missing unistd.h

Jan Janak 20 years ago
parent
commit
85e37d1140
1 changed files with 2 additions and 1 deletions
  1. 2 1
      utils/serunix/serunix.c

+ 2 - 1
utils/serunix/serunix.c

@@ -26,6 +26,7 @@
  *
  *
  */
  */
 
 
+#include <unistd.h>
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <sys/types.h>
 #include <sys/types.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) {