Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=a1fb5a5759113321d4e0d83bf0c9d6133f806479

commit a1fb5a5759113321d4e0d83bf0c9d6133f806479
Author: Michel Hermier <[email protected]>
Date:   Mon Sep 8 14:27:35 2014 +0200

pacman-g2: Fix some warnings in deptestpkg.

diff --git a/src/pacman-g2/deptest.c b/src/pacman-g2/deptest.c
index e919464..993161c 100644
--- a/src/pacman-g2/deptest.c
+++ b/src/pacman-g2/deptest.c
@@ -92,7 +92,7 @@ int deptestpkg(FStringList *targets)
FREE(str);

if(pacman_trans_prepare(&data) == -1) {
-               list_t *synctargs = NULL;
+               FStringList *synctargs = NULL;
retval = 126;
/* return 126 = deps were missing, but successfully resolved
* return 127 = deps were missing, and failed to resolve; OR
@@ -135,18 +135,18 @@ int deptestpkg(FStringList *targets)
if(retval == 126 && synctargs != NULL) {
if(pacman_trans_release() == -1) {
ERR(NL, _("could not release transaction (%s)"), pacman_strerror(pm_errno));
-                               FREELIST(synctargs);
+                               f_stringlist_delete(synctargs);
return(1);
}
if(!config->op_d_resolve || syncpkg(synctargs) != 0) {
/* error (or -D not used) */
retval = 127;
}
-                       FREELIST(synctargs);
+                       f_stringlist_delete(synctargs);
return(retval);
}

-               FREELIST(synctargs);
+               f_stringlist_delete(synctargs);
}

cleanup:
@@ -156,8 +156,7 @@ cleanup:
retval = 1;
}
}
-
-       return(retval);
+       return retval;
}

/* vim: set ts=2 sw=2 noet: */
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to