1) added typecast around getpid() to let us printf it on all platforms
authorewt <devnull@localhost>
Thu, 20 Mar 1997 15:19:00 +0000 (15:19 +0000)
committerewt <devnull@localhost>
Thu, 20 Mar 1997 15:19:00 +0000 (15:19 +0000)
2) fixed spelling of deprecated

CVS patchset: 1492
CVS date: 1997/03/20 15:19:00

rpm.c

diff --git a/rpm.c b/rpm.c
index a504577..290589c 100755 (executable)
--- a/rpm.c
+++ b/rpm.c
@@ -348,7 +348,7 @@ static int build(char *arg, int buildAmount, char *passPhrase,
     if (fromTarball) {
        specDir = rpmGetVar(RPMVAR_SPECDIR);
        tmpSpecFile = alloca(1024);
-       sprintf(tmpSpecFile, "%s/rpm-spec-file-%d", specDir, getpid());
+       sprintf(tmpSpecFile, "%s/rpm-spec-file-%d", specDir, (int) getpid());
 
        cmd = alloca(strlen(arg) + 50 + strlen(tmpSpecFile));
        sprintf(cmd, "gunzip < %s | tar xOvf - \\*.spec 2>&1 > %s", arg,
@@ -635,7 +635,7 @@ int main(int argc, char ** argv) {
            if (bigMode != MODE_UNKNOWN && bigMode != MODE_UNINSTALL)
                argerror(_("only one major mode may be specified"));
            bigMode = MODE_UNINSTALL;
-           rpmMessage(RPMMESS_ERROR, _("-u and --uninstall are depricated and no"
+           rpmMessage(RPMMESS_ERROR, _("-u and --uninstall are deprecated and no"
                    " longer work.\n"));
            rpmMessage(RPMMESS_ERROR, _("Use -e or --erase instead.\n"));
            exit(1);