2) use if not ifdef
3) typevase getpid() to int for printf()
CVS patchset: 1314
CVS date: 1997/01/17 16:21:51
-#ifdef HAVE_ALLOCA_H
+#include "config.h"
+
+#if HAVE_ALLOCA_H
# include <alloca.h>
#endif
}
fn = alloca(strlen(tmpdir) + 20);
- sprintf(fn, "%s/rpm-%d.vscript", tmpdir, getpid());
+ sprintf(fn, "%s/rpm-%d.vscript", tmpdir, (int) getpid());
rpmMessage(RPMMESS_DEBUG, "verify script found - "
"running from file %s\n", fn);