Browse Source

- fixed warnings due to missing unistd.h

Jan Janak 20 năm trước cách đây
mục cha
commit
85e37d1140
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      utils/serunix/serunix.c

+ 2 - 1
utils/serunix/serunix.c

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