summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-06-20 16:48:44 -0400
committerKristian Høgsberg <krh@redhat.com>2008-06-20 16:48:44 -0400
commit1e9df0cb2d4c377b14732441a8ced0d304903722 (patch)
tree517544e7807d40de7cfe4731e02648aac415d03b /src
parente557f97da15b1682b2e9854672b019485bc48362 (diff)
Rename razor_importer_new to _create to follow convention.
Diffstat (limited to 'src')
-rw-r--r--src/import-rpmdb.c2
-rw-r--r--src/import-yum.c2
-rw-r--r--src/main.c2
-rw-r--r--src/rpm.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/import-rpmdb.c b/src/import-rpmdb.c
index 22d0855..916ca27 100644
--- a/src/import-rpmdb.c
+++ b/src/import-rpmdb.c
@@ -97,7 +97,7 @@ razor_set_create_from_rpmdb(void)
exit(1);
}
- importer = razor_importer_new();
+ importer = razor_importer_create();
iter = rpmdbInitIterator(db, 0, NULL, 0);
while (h = rpmdbNextIterator(iter), h != NULL) {
diff --git a/src/import-yum.c b/src/import-yum.c
index 2efd201..f70c71d 100644
--- a/src/import-yum.c
+++ b/src/import-yum.c
@@ -256,7 +256,7 @@ razor_set_create_from_yum(void)
gzFile primary, filelists;
XML_ParsingStatus status;
- ctx.importer = razor_importer_new();
+ ctx.importer = razor_importer_create();
ctx.state = YUM_STATE_BEGIN;
ctx.primary_parser = XML_ParserCreate(NULL);
diff --git a/src/main.c b/src/main.c
index 6a2acf7..7dd4bb7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -537,7 +537,7 @@ command_import_rpms(int argc, const char *argv[])
return -1;
}
- importer = razor_importer_new();
+ importer = razor_importer_create();
while (de = readdir(dir), de != NULL) {
len = strlen(de->d_name);
diff --git a/src/rpm.c b/src/rpm.c
index 7ad0d6d..57714c3 100644
--- a/src/rpm.c
+++ b/src/rpm.c
@@ -414,7 +414,7 @@ create_set_from_command_line(int argc, const char *argv[])
struct razor_rpm *rpm;
int i;
- importer = razor_importer_new();
+ importer = razor_importer_create();
for (i = 0; i < argc; i++) {
rpm = razor_rpm_open(argv[i]);