Silence warnings.

This commit is contained in:
Murray Stokely 2001-09-22 22:25:35 +00:00
parent 9838440951
commit 3b603fb7d3
5 changed files with 12 additions and 6 deletions

View File

@ -125,7 +125,8 @@ expand(char *fname)
void
systemInitialize(int argc, char **argv)
{
int i, boothowto;
size_t i;
int boothowto;
sigset_t signalset;
signal(SIGINT, SIG_IGN);

View File

@ -36,6 +36,8 @@
#include "sysinstall.h"
#include <ctype.h>
#include <curses.h>
#include <term.h>
int fixitTtyWhich(dialogMenuItem *);
int termSetType(dialogMenuItem *);
@ -174,7 +176,7 @@ value_of(Option opt)
return (char *)opt.data;
case OPT_IS_INT:
sprintf(ival, "%d", (int)opt.data);
sprintf(ival, "%lu", (long)opt.data);
return ival;
case OPT_IS_FUNC:

View File

@ -125,7 +125,8 @@ expand(char *fname)
void
systemInitialize(int argc, char **argv)
{
int i, boothowto;
size_t i;
int boothowto;
sigset_t signalset;
signal(SIGINT, SIG_IGN);

View File

@ -70,11 +70,13 @@ mediaGetTape(Device *dev, char *file, Boolean probe)
if (!tapeInitted) {
WINDOW *w = savescr();
msgDebug("Tape init routine called for %s (private dir is %s)\n", dev->name, dev->private);
msgDebug("Tape init routine called for %s (private dir is %s)\n",
dev->name, (char *)dev->private);
Mkdir(dev->private);
if (chdir(dev->private)) {
msgConfirm("Unable to CD to %s before extracting tape!\n"
"Tape media is not selected and thus cannot be installed from.", dev->private);
"Tape media is not selected and thus cannot be installed from.",
(char *)dev->private);
return (FILE *)IO_ERROR;
}
/* We know the tape is already in the drive, so go for it */

View File

@ -359,7 +359,7 @@ tcpOpenDialog(Device *devp)
if (!variable_cmp(VAR_TRY_RTSOL, "YES") ||
(variable_get(VAR_TRY_RTSOL)==0 && !msgNoYes("Do you want to try IPv6 configuration of the interface?"))) {
int i;
int len;
size_t len;
i = 0;
sysctlbyname("net.inet6.ip6.forwarding", NULL, 0, &i, sizeof(i));