X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=list.c;h=0ab3ff01f3a2e2ccf8d6bff428fbec9280eca291;hb=cd581a3e864957fdb30ee1987734e8abd8debf8c;hp=03fec7cab22078fd5ebc065468f53b9e06b2964d;hpb=551ef6ebd6cfbf7caf60dd132953fad4b687f107;p=my-code%2Fhdw-sniff.git diff --git a/list.c b/list.c index 03fec7c..0ab3ff0 100644 --- 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 "list.h" -#include -#include -#include -char sys_call[20]; - -int add_ssid_2_list(char *ssid, struct list *my_list) { - - struct list *new_entry; - - if(my_list->next==NULL) { - // printf("debug: new ssid found!\n"); - sprintf(sys_call,"flite \"new ssid. %s\"",ssid); - system(sys_call); - 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,my_list->next); - } - return 1; -}