summaryrefslogtreecommitdiff
blob: 508db5e8eedeb731dd8516bd9be9156e79d4aef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
diff -ur airtraf-1.0/src/sniffd/autoconfig.c 
airtraf-1.0-r1/src/sniffd/autoconfig.c
--- airtraf-1.0/src/sniffd/autoconfig.c	2002-11-21 07:13:47.000000000 
+0100
+++ airtraf-1.0-r1/src/sniffd/autoconfig.c	2004-09-21 
22:17:02.641477344 +0200
@@ -358,7 +358,7 @@
 int check_drv_compat(char * drvname, int * id)
 {
   int i;
-  for (i=0; (int) compat_drivers[i] != -1; i++){
+  for (i=0; (long) compat_drivers[i] != -1; i++){
     if (!strncmp(compat_drivers[i], drvname, DRVNAMSIZ +1)){
       *id = i;
       return (1); // just true...
@@ -490,6 +490,7 @@
 
   /* Close the socket. */
   close(skfd);
+  return 0;
 }
 
 /**
@@ -701,7 +702,7 @@
       }
       break;
     case DRV_PRISM2:
-
+	break;
 	
     }
   }
diff -ur airtraf-1.0/src/sniffd/server.c 
airtraf-1.0-r1/src/sniffd/server.c
--- airtraf-1.0/src/sniffd/server.c	2002-11-21 07:13:47.000000000 
+0100
+++ airtraf-1.0-r1/src/sniffd/server.c	2004-09-21 22:19:18.625804584 
+0200
@@ -57,7 +57,7 @@
 
 int process_command(int, char *);
 int issue_get_cmd(int, char *);
-int send_bss_info(int);
+ssize_t send_bss_info(int);
 int send_ids_info(int);
 
 /*=============================================================*/
@@ -143,7 +143,7 @@
       if (DEBUG) fprintf(stderr,"Error transmitting data\n");
     }
   } while (write_len == 0);
-  if (DEBUG) fprintf(stderr,"Data: %d bytes sent\n",length);
+  if (DEBUG) fprintf(stderr,"Data: %ld bytes sent\n",length);
 }
 
 /**
Seulement dans airtraf-1.0-r1/src/sniffd: server.c~