changed struct rpmdb to struct rpmdb_s for C++

CVS patchset: 1686
CVS date: 1997/06/16 17:30:59
This commit is contained in:
ewt 1997-06-16 17:30:59 +00:00
parent 6c6815035e
commit 835e5f5f2d
3 changed files with 5 additions and 4 deletions

View File

@ -6,6 +6,7 @@
use for binary packages (note the rpmdir is prepended to it)
- used pclose() instead of fclose() in -t code
- updated man pages
- changed "struct rpmdb" to "struct rpmdb_s" for C++
2.4 -> 2.4.1:
- take advantage of lchown() if it's available

View File

@ -32,7 +32,7 @@
one. Version numbers still need verification, but it gets us in the
right area w/o a linear search through the database. */
struct rpmdb {
struct rpmdb_s {
faFile pkgs;
dbiIndex * nameIndex, * fileIndex, * groupIndex, * providesIndex;
dbiIndex * requiredbyIndex, * conflictsIndex;
@ -75,7 +75,7 @@ int rpmdbInit (char * prefix, int perms) {
int openDatabase(char * prefix, char * dbpath, rpmdb *rpmdbp, int mode,
int perms, int justcheck) {
char * filename;
struct rpmdb db;
struct rpmdb_s db;
int i;
struct flock lockinfo;
@ -219,7 +219,7 @@ int openDatabase(char * prefix, char * dbpath, rpmdb *rpmdbp, int mode,
}
}
*rpmdbp = malloc(sizeof(struct rpmdb));
*rpmdbp = malloc(sizeof(struct rpmdb_s));
**rpmdbp = db;
if (justcheck) {

View File

@ -210,7 +210,7 @@ int rpmOsScore(char * os);
/** **/
typedef struct rpmdb * rpmdb;
typedef struct rpmdb_s * rpmdb;
typedef void (*rpmNotifyFunction)(const unsigned long amount,
const unsigned long total);