diff options
author | jbj <devnull@localhost> | 2000-12-12 20:03:45 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-12-12 20:03:45 +0000 |
commit | db32ab6bea1b635129820d6b628e6156c61b5385 (patch) | |
tree | 055f7ee7d5e06ba0b3e858b82f639310b892503d /lib/fs.c | |
parent | 2e9d2616969433851a1c883c900d6ea5acde67b7 (diff) | |
download | librpm-tizen-db32ab6bea1b635129820d6b628e6156c61b5385.tar.gz librpm-tizen-db32ab6bea1b635129820d6b628e6156c61b5385.tar.bz2 librpm-tizen-db32ab6bea1b635129820d6b628e6156c61b5385.zip |
Sync with rpm-4_0 branch.
CVS patchset: 4338
CVS date: 2000/12/12 20:03:45
Diffstat (limited to 'lib/fs.c')
-rw-r--r-- | lib/fs.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,11 +1,11 @@ -#include "system.h" - /** * \file lib/fs.c */ +#include "system.h" #include <rpmlib.h> -#include <rpmmacro.h> +#include <rpmmacro.h> /* XXX for rpmGetPath */ +#include "debug.h" struct fsinfo { /*@only@*/ const char * mntPoint; /*!< path to mount point. */ @@ -22,7 +22,7 @@ void freeFilesystems(void) if (filesystems) { int i; for (i = 0; i < numFilesystems; i++) - xfree(filesystems[i].mntPoint); + free((void *)filesystems[i].mntPoint); free(filesystems); filesystems = NULL; } @@ -286,7 +286,7 @@ int rpmGetFilesystemUsage(const char ** fileList, int_32 * fssizes, int numFiles if (errno != ENOENT) { rpmError(RPMERR_STAT, _("failed to stat %s: %s"), buf, strerror(errno)); - xfree(sourceDir); + free((void *)sourceDir); free(usages); return 1; } @@ -307,7 +307,7 @@ int rpmGetFilesystemUsage(const char ** fileList, int_32 * fssizes, int numFiles if (j == numFilesystems) { rpmError(RPMERR_BADDEV, _("file %s is on an unknown device"), buf); - xfree(sourceDir); + free((void *)sourceDir); free(usages); return 1; } @@ -321,7 +321,7 @@ int rpmGetFilesystemUsage(const char ** fileList, int_32 * fssizes, int numFiles usages[lastfs] += fssizes[i]; } - if (sourceDir) xfree(sourceDir); + if (sourceDir) free((void *)sourceDir); *usagesPtr = usages; |