r11096 - libprelude/trunk/tests

[email protected]
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
Author: yoann
Date: 2008-11-14 17:21:54 +0100 (Fri, 14 Nov 2008)
New Revision: 11096

Modified:
   libprelude/trunk/tests/idmef-path.c
Log:
Use idmef_path_new_fast(), kill warning.


Modified: libprelude/trunk/tests/idmef-path.c
===================================================================
--- libprelude/trunk/tests/idmef-path.c	2008-11-14 16:21:52 UTC (rev 11095)
+++ libprelude/trunk/tests/idmef-path.c	2008-11-14 16:21:54 UTC (rev 11096)
@@ -14,7 +14,7 @@
         prelude_string_t *str;
         prelude_string_t *res;
 
-        assert(idmef_path_new(&path, paths) == 0);
+        assert(idmef_path_new_fast(&path, paths) == 0);
         assert(prelude_string_new_ref(&str, str_value) == 0);
         assert(idmef_value_new_string(&value, str) == 0);
 
@@ -64,7 +64,7 @@
         assert(idmef_message_new(&idmef) == 0);
 
         for ( i = 0; i < sizeof(plist) / sizeof(*plist); i++ ) {
-                ret = idmef_path_new(&path, plist[i].path);
+                ret = idmef_path_new_fast(&path, plist[i].path);
                 assert((plist[i].successful == TRUE && ret == 0) || (plist[i].successful == FALSE && ret < 0));
 
                 if ( ret < 0 )

_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.