added ignore file
[my-code/hdw-sniff.git] / list.c
diff --git a/list.c b/list.c
index 3b4946e..0ab3ff0 100644 (file)
--- a/list.c
+++ b/list.c
@@ -1,33 +1,10 @@
-/* manage sniffed stuff in linked lists
+/*
+ * list.c - list interface
  *
  * author: hackbard@hackdaworld.dyndns.org
  *
  */
 
-#include "hdw_outlib.h"
 #include "list.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
 
 
-// char sys_call[20];
-
-int add_ssid_2_list(char *ssid,unsigned short cap,struct list *my_list) {
-
-       struct list *new_entry;
-
-       if(my_list->next==NULL) {
-               tell_ssid(ssid);
-               lcd_ssid(ssid,cap);
-               new_entry=(struct list *)malloc(sizeof(struct list));
-               my_list->next=new_entry;
-               strcpy(my_list->ssid,ssid);
-               new_entry->next=NULL;
-       } else if(!strcmp(my_list->ssid,ssid)) {
-       /* do nothing! */
-       } else {
-               add_ssid_2_list(ssid,cap,my_list->next);
-       }
-       return 1;
-}