Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 1999 09:14:03 -0800 (PST)
From:      Matthew Jacob <mjacob@feral.com>
To:        Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
Cc:        alpha@FreeBSD.ORG
Subject:   Re: broken builds? 
Message-ID:  <Pine.LNX.4.04.9901120901140.24136-100000@feral-gw>
In-Reply-To: <199901121700.CAA03040@zodiac.mech.utsunomiya-u.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help

Thanks for the quick response, here's the results:

farrago.feral.com > cd /usr/src/usr.sbin/vidcontrol/
farrago.feral.com > make
Warning: Object directory not changed from original
/usr/src/usr.sbin/vidcontrol
cc -O -pipe -Wall   -c vidcontrol.c
vidcontrol.c: In function `video_mode':
vidcontrol.c:292: warning: `mode' might be used uninitialized in this
function
vidcontrol.c: In function `set_console':
vidcontrol.c:376: warning: cast to pointer from integer of different size
vidcontrol.c: In function `show_mode_info':
vidcontrol.c:494: warning: int format, different type arg (arg 3)
vidcontrol.c:494: warning: int format, different type arg (arg 4)
vidcontrol.c:496: warning: int format, different type arg (arg 3)
cc -O -pipe -Wall   -c decode.c
cc -O -pipe -Wall    -o vidcontrol vidcontrol.o decode.o  
gzip -cn vidcontrol.1 > vidcontrol.1.gz
farrago.feral.com > make
Warning: Object directory not changed from original
/usr/src/usr.sbin/kbdcontrol
cc -O -pipe   -c kbdcontrol.c
lex -t  lex.l > lex.c
cc -O -pipe   -c lex.c
cc -O -pipe    -o kbdcontrol kbdcontrol.o lex.o  -ll
gzip -cn kbdcontrol.1 > kbdcontrol.1.gz

I fixed a couple of the vidcontrol errors (don't you you want 
address of n, not n?), but the printf format warnings are not
fixable because size_t is a long on alpha, not an int.

*** vidcontrol.c.save	Tue Jan 12 09:02:27 1999
--- vidcontrol.c	Tue Jan 12 09:11:11 1999
***************
*** 289,295 ****
  		{ "VESA_800x600",	SW_VESA_800x600 },
  		{ NULL },
  	};
! 	unsigned long mode;
  	int size[3];
  	int i;
  
--- 289,295 ----
  		{ "VESA_800x600",	SW_VESA_800x600 },
  		{ NULL },
  	};
! 	unsigned long mode = 0;
  	int size[3];
  	int i;
  
***************
*** 373,379 ****
  	n = atoi(arg);
  	if (n < 1 || n > 12) {
  		warnx("console number out of range");
! 	} else if (ioctl(0,VT_ACTIVATE,(char *)n) == -1)
  		warn("ioctl(VT_ACTIVATE)");
  }
  
--- 373,379 ----
  	n = atoi(arg);
  	if (n < 1 || n > 12) {
  		warnx("console number out of range");
! 	} else if (ioctl(0, VT_ACTIVATE, (caddr_t) &n) == -1)
  		warn("ioctl(VT_ACTIVATE)");
  }
  



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.04.9901120901140.24136-100000>