diff cinst/main.c @ 116:c602d8cfa619

Refactoring: unified naming of string vector functions.
author Sascha Wilde <wilde@intevation.de>
date Fri, 21 Mar 2014 17:42:00 +0100
parents 80ab2168760f
children 24fb90ef8f6a
line wrap: on
line diff
--- a/cinst/main.c	Fri Mar 21 17:13:24 2014 +0100
+++ b/cinst/main.c	Fri Mar 21 17:42:00 2014 +0100
@@ -92,17 +92,17 @@
         }
         if (*buf == 'I') {
             /* Remove leading I: and trailing \r\n */
-            array_append_str(to_install, buf+2, len - 4);
+            strv_append(to_install, buf+2, len - 4);
             continue;
         }
         if (*buf == 'R') {
             /* Remove leading R: and trailing \r\n */
-            array_append_str(to_remove, buf+2, len - 4);
+            strv_append(to_remove, buf+2, len - 4);
             continue;
         }
         if (strcmp("UNINSTALL", buf) == 0) {
             /* Remove trailing \r\n */
-            array_append_str(to_remove, buf, len - 2);
+            strv_append(to_remove, buf, len - 2);
         }
     }
 
@@ -255,8 +255,8 @@
 #endif
 
     /* Make valgrind happy */
-    strfreev(to_install);
-    strfreev(to_remove);
+    strv_free(to_install);
+    strv_free(to_remove);
     free(certificate_list);
 
     return 0;

http://wald.intevation.org/projects/trustbridge/