[Autosec-devel] sonar/doc/example sonar_inp_list-1.c,1.1,1.2 sonar_inp_list-4.c,1.1,1.2 sonar_inp_li
Brought to you by:
red0x
From: red0x <re...@us...> - 2004-04-08 22:50:01
|
Update of /cvsroot/autosec/sonar/doc/example In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30009/doc/example Modified Files: sonar_inp_list-1.c sonar_inp_list-4.c sonar_inp_list.c Log Message: Errata fix Index: sonar_inp_list-1.c =================================================================== RCS file: /cvsroot/autosec/sonar/doc/example/sonar_inp_list-1.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sonar_inp_list-1.c 8 Apr 2004 21:54:59 -0000 1.1 --- sonar_inp_list-1.c 8 Apr 2004 22:36:33 -0000 1.2 *************** *** 22,26 **** */ ! #include "include/iplist.h" #include <sonar/plugin.h> #include <assert.h> // for assert(3) --- 22,26 ---- */ ! #include "sonar_inp_list.h" #include <sonar/plugin.h> #include <assert.h> // for assert(3) *************** *** 72,79 **** // This is how we get accessed from sonar. ! // for 'R', we are used like this: 'sonar -iR' ! plugin_context.plugin_char = 'R'; ! plugin_context.shortname = "random"; // short name ! plugin_context.longname = "Random Input Plugin"; // description // provide pointers to corresponding functions. --- 72,79 ---- // This is how we get accessed from sonar. ! // for 'L', we are used like this: 'sonar -iL' ! plugin_context.plugin_char = 'L'; ! plugin_context.shortname = "list"; // short name ! plugin_context.longname = "IP List Input Plugin"; // description // provide pointers to corresponding functions. Index: sonar_inp_list-4.c =================================================================== RCS file: /cvsroot/autosec/sonar/doc/example/sonar_inp_list-4.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sonar_inp_list-4.c 8 Apr 2004 21:54:59 -0000 1.1 --- sonar_inp_list-4.c 8 Apr 2004 22:36:33 -0000 1.2 *************** *** 12,16 **** if(hostname[0] == '#') continue; ! hostname[BUFSIZE] = '\0'; return PLUGIN_OK; } --- 12,16 ---- if(hostname[0] == '#') continue; ! hostname[strlen(hostname)-1] = '\0'; return PLUGIN_OK; } Index: sonar_inp_list.c =================================================================== RCS file: /cvsroot/autosec/sonar/doc/example/sonar_inp_list.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sonar_inp_list.c 8 Apr 2004 21:54:59 -0000 1.1 --- sonar_inp_list.c 8 Apr 2004 22:36:33 -0000 1.2 *************** *** 22,26 **** */ ! #include "include/iplist.h" #include <sonar/plugin.h> #include <assert.h> // for assert(3) --- 22,26 ---- */ ! #include "sonar_inp_list.h" #include <sonar/plugin.h> #include <assert.h> // for assert(3) *************** *** 72,79 **** // This is how we get accessed from sonar. ! // for 'R', we are used like this: 'sonar -iR' ! plugin_context.plugin_char = 'R'; ! plugin_context.shortname = "random"; // short name ! plugin_context.longname = "Random Input Plugin"; // description // provide pointers to corresponding functions. --- 72,79 ---- // This is how we get accessed from sonar. ! // for 'L', we are used like this: 'sonar -iL' ! plugin_context.plugin_char = 'L'; ! plugin_context.shortname = "list"; // short name ! plugin_context.longname = "IP List Input Plugin"; // description // provide pointers to corresponding functions. *************** *** 165,169 **** if(hostname[0] == '#') continue; ! hostname[BUFSIZE] = '\0'; return PLUGIN_OK; } --- 165,169 ---- if(hostname[0] == '#') continue; ! hostname[strlen(hostname)-1] = '\0'; return PLUGIN_OK; } |