summaryrefslogtreecommitdiff
path: root/rpm.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-03-16 20:04:26 +0000
committerjbj <devnull@localhost>1999-03-16 20:04:26 +0000
commitca9dc63de974d1335dce533d310ffbb11812fce0 (patch)
tree469a0c5fca0d4af44d115ec546262ef0b5623e7b /rpm.c
parent776dc9c2581c54e7ebb9980ca01401956e4f81b0 (diff)
downloadlibrpm-tizen-ca9dc63de974d1335dce533d310ffbb11812fce0.tar.gz
librpm-tizen-ca9dc63de974d1335dce533d310ffbb11812fce0.tar.bz2
librpm-tizen-ca9dc63de974d1335dce533d310ffbb11812fce0.zip
Fix newSpec in "rpm -q --specfile --specedit"
CVS patchset: 2892 CVS date: 1999/03/16 20:04:26
Diffstat (limited to 'rpm.c')
-rwxr-xr-xrpm.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/rpm.c b/rpm.c
index ebd3e9d53..b3b84cc87 100755
--- a/rpm.c
+++ b/rpm.c
@@ -147,9 +147,6 @@ static struct poptOption optionsTable[] = {
{ 0, 0, 0, 0, 0, NULL, NULL }
};
-
-static void argerror(char * desc);
-
static void argerror(char * desc) {
fprintf(stderr, _("rpm: %s\n"), desc);
exit(EXIT_FAILURE);
@@ -508,8 +505,8 @@ int main(int argc, char ** argv) {
char * cookie = NULL;
char * optArg;
pid_t pipeChild = 0;
- char * pkg;
- char * errString;
+ const char * pkg;
+ char * errString = NULL;
poptContext optCon;
char * infoCommand[] = { "--info", NULL };
char * installCommand[] = { "--install", NULL };
@@ -1093,7 +1090,7 @@ int main(int argc, char ** argv) {
if (signIt) {
if (bigMode == MODE_REBUILD || bigMode == MODE_BUILD ||
bigMode == MODE_RESIGN || bigMode == MODE_TARBUILD) {
- char ** argv;
+ const char ** argv;
struct stat sb;
int errors = 0;