diff options
author | Dan McGee <dan@archlinux.org> | 2007-04-25 23:24:23 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-04-26 20:34:41 +0200 |
commit | 97313ba31645796148c3f413d9ebde365df06dbe (patch) | |
tree | 95a937c665c4ecb57c21df645292c616451794ae /src/pacman/package.c | |
parent | da3286a80d10ea3896ae09e9e753dc4f19fa3bf6 (diff) | |
download | pacman-97313ba31645796148c3f413d9ebde365df06dbe.tar.gz pacman-97313ba31645796148c3f413d9ebde365df06dbe.tar.xz |
More pacman side cleanup
* Cleaned up more of the header #includes, and got rid of a lot of stuff
that was due to trying to make it compile on BSD/Darwin/CYGWIN. We can
add it later but lets keep it simple for now and do it in seperate files
if possible later.
* Removed a lot of #define MACROS. Some were not even used, and others were
only used a few times.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/package.c')
-rw-r--r-- | src/pacman/package.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pacman/package.c b/src/pacman/package.c index d9b63088..c1617f4d 100644 --- a/src/pacman/package.c +++ b/src/pacman/package.c @@ -164,7 +164,7 @@ void dump_pkg_backups(pmpkg_t *pkg) char *str = strdup(alpm_list_getdata(i)); char *ptr = index(str, '\t'); if(ptr == NULL) { - FREE(str); + free(str); continue; } *ptr = '\0'; @@ -178,7 +178,7 @@ void dump_pkg_backups(pmpkg_t *pkg) if(md5sum == NULL || sha1sum == NULL) { ERR(NL, _("error calculating checksums for %s\n"), path); - FREE(str); + free(str); continue; } /* TODO Is this a good way to check type of backup stored? @@ -194,12 +194,12 @@ void dump_pkg_backups(pmpkg_t *pkg) } else { printf(_("Not Modified\t%s\n"), path); } - FREE(md5sum); - FREE(sha1sum); + free(md5sum); + free(sha1sum); } else { printf(_("MISSING\t\t%s\n"), path); } - FREE(str); + free(str); } } else { /* package had no backup files */ |