Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: build.sh ... distribution fails for alpha (at least)
On Mon, 8 Mar 2010, Kurt Schreiner wrote:
> with -current source cvs updated some minutes ago trying build.sh ...
> distribution for alpha on NetBSD-amd64, Solaris and MacOS ends w/:
I fixed the compilation errors..
iain
Index: btattach.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/btattach/btattach.c,v
retrieving revision 1.8
diff -u -r1.8 btattach.c
--- btattach.c 8 Mar 2010 17:59:52 -0000 1.8
+++ btattach.c 8 Mar 2010 20:47:00 -0000
@@ -522,7 +522,9 @@
test(const char *tty, tcflag_t cflag, tcflag_t Cflag)
{
struct termios tio;
- int fd, guessed, i, j, k, n;
+ int fd, guessed;
+ size_t i, j, k;
+ ssize_t n;
unsigned char buf[32];
const int bauds[] = {
57600, /* BCSP specific default */
@@ -573,11 +575,12 @@
for (i = 0; i < __arraycount(bauds); i++) {
if (cfsetspeed(&tio, bauds[i]) < 0
|| tcsetattr(fd, TCSANOW, &tio) < 0
- || tcflush(fd, TCIOFLUSH) < 0)
+ || tcflush(fd, TCIOFLUSH) < 0) {
if (bauds[i] > 115200)
continue;
else
err(EXIT_FAILURE, "tty setup failed");
+ }
if (opt_debug)
printf(" try with B%d\n", bauds[i]);
@@ -600,7 +603,7 @@
err(EXIT_FAILURE, "read");
} else {
- if (n < sizeof(bcsp_lepkt))
+ if ((size_t)n < sizeof(bcsp_lepkt))
continue;
for (j = 0; j < n - sizeof(bcsp_lepkt); j++) {
for (k = 0; k < sizeof(bcsp_lepkt); k++)
Home |
Main Index |
Thread Index |
Old Index