2
===================================================================
3
--- src/last.c (revision 290)
4
+++ src/last.c (working copy)
9
- if (a[0] == 0 && a[1] == 0 && a[2] == htonl (0xffff))
10
+ if (a[0] == 0 && a[1] == 0 && a[2] == (int32_t)htonl (0xffff))
12
topnibble = ntohl((unsigned int)a[0]) >> 28;
13
if (topnibble < 2 || topnibble > 3 || mapped ||
15
r = dns_lookup(domain, sizeof(domain), useip, p->ut_addr_v6);
18
- if (len >= sizeof(domain)) len = sizeof(domain) - 1;
19
+ if (len >= (int)sizeof(domain)) len = sizeof(domain) - 1;
21
strncat(domain, p->ut_host, len);
24
===================================================================
25
--- src/init.c (revision 290)
26
+++ src/init.c (working copy)
28
* Find out which process(es) this was (were)
30
while((pid = waitpid(-1, &st, WNOHANG)) != 0) {
31
- if (errno == ECHILD) break;
32
+ if (errno == ECHILD)
34
for( ch = family; ch; ch = ch->next )
35
if ( ch->pid == pid && (ch->flags & RUNNING) ) {
43
INITDBG(L_VB, "chld_handler: unknown child %d exited.",
50
strncpy(ch->id, id, sizeof(utproto.ut_id) + 1); /* Hack for different libs. */
51
strncpy(ch->process, process, sizeof(ch->process) - 1);
53
- for(f = 0; f < sizeof(rlevel) - 1 && rlevel[f]; f++) {
54
+ for(f = 0; f < (int)sizeof(rlevel)-1 && rlevel[f]; f++) {
55
ch->rlevel[f] = rlevel[f];
56
if (ch->rlevel[f] == 's') ch->rlevel[f] = 'S';
59
===================================================================
60
--- src/bootlogd.c (revision 290)
61
+++ src/bootlogd.c (working copy)
63
fprintf(stderr, "bootlogd: cannot find console device "
64
"%d:%d in /dev\n", major(dev), minor(dev));
66
- } else if (strlen(ent->d_name) + 5 >= rlen) {
67
+ } else if ((int)strlen(ent->d_name) + 5 >= rlen) {
68
fprintf(stderr, "bootlogd: console device name too long\n");
74
line.pos += (line.pos / 8 + 1) * 8;
75
- if (line.pos >= sizeof(line.buf))
76
+ if (line.pos >= (int)sizeof(line.buf))
77
line.pos = sizeof(line.buf) - 1;
84
- if (tlen && (line.pos + tlen < sizeof(line.buf))) {
85
+ if (tlen && (line.pos + tlen < (int)sizeof(line.buf))) {
86
memcpy(line.buf + line.pos, tmp, tlen);
91
todo = endptr - outptr;
93
- writelog(fp, outptr, todo);
94
+ writelog(fp, (unsigned char *)outptr, todo);
99
===================================================================
100
--- src/shutdown.c (revision 290)
101
+++ src/shutdown.c (working copy)
104
vl = value ? strlen(value) : 0;
106
- if (nl + vl + 3 >= sizeof(request.i.data))
107
+ if (nl + vl + 3 >= (int)sizeof(request.i.data))
110
memcpy(request.i.data, name, nl);
112
===================================================================
113
--- src/sulogin.c (revision 290)
114
+++ src/sulogin.c (working copy)
116
if (read(0, pass, sizeof(pass) - 1) <= 0)
119
- for(i = 0; i < sizeof(pass) && pass[i]; i++)
120
+ for(i = 0; i < (int)sizeof(pass) && pass[i]; i++)
121
if (pass[i] == '\r' || pass[i] == '\n') {