aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-01-30 22:48:39 +0000
committerEric Andersen <andersen@codepoet.org>2006-01-30 22:48:39 +0000
commita68ea1cb93c29125bc4f30ddd415fca02249e010 (patch)
tree5741be315758b807145c24da9ff3a1dbf8fce4e8
parent9a58b02ec75caafb7214f1ad0317f9a4830cbd2a (diff)
downloadbusybox-w32-a68ea1cb93c29125bc4f30ddd415fca02249e010.tar.gz
busybox-w32-a68ea1cb93c29125bc4f30ddd415fca02249e010.tar.bz2
busybox-w32-a68ea1cb93c29125bc4f30ddd415fca02249e010.zip
fix up yet more annoying signed/unsigned and mixed type errors
-rw-r--r--editors/vi.c26
-rw-r--r--loginutils/login.c4
-rw-r--r--miscutils/devfsd.c3
-rw-r--r--miscutils/hdparm.c6
-rw-r--r--networking/udhcp/dhcpc.c8
-rw-r--r--networking/udhcp/packet.c2
-rw-r--r--networking/udhcp/serverpacket.c4
-rw-r--r--procps/fuser.c4
-rw-r--r--procps/sysctl.c2
-rw-r--r--shell/ash.c26
-rw-r--r--shell/hush.c6
-rw-r--r--shell/lash.c2
-rw-r--r--shell/msh.c2
13 files changed, 49 insertions, 46 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 553561b21..bf537ee62 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -347,7 +347,7 @@ extern int vi_main(int argc, char **argv)
347 (void) srand((long) my_pid); 347 (void) srand((long) my_pid);
348#endif /* CONFIG_FEATURE_VI_CRASHME */ 348#endif /* CONFIG_FEATURE_VI_CRASHME */
349 349
350 status_buffer = STATUS_BUFFER; 350 status_buffer = (Byte *)STATUS_BUFFER;
351 last_status_cksum = 0; 351 last_status_cksum = 0;
352 352
353#ifdef CONFIG_FEATURE_VI_READONLY 353#ifdef CONFIG_FEATURE_VI_READONLY
@@ -729,7 +729,7 @@ static void colon(Byte * buf)
729 while (isblnk(*buf)) 729 while (isblnk(*buf))
730 buf++; 730 buf++;
731 strcpy((char *) args, (char *) buf); 731 strcpy((char *) args, (char *) buf);
732 buf1 = last_char_is((char *)cmd, '!'); 732 buf1 = (Byte*)last_char_is((char *)cmd, '!');
733 if (buf1) { 733 if (buf1) {
734 useforce = TRUE; 734 useforce = TRUE;
735 *buf1 = '\0'; // get rid of ! 735 *buf1 = '\0'; // get rid of !
@@ -763,7 +763,7 @@ static void colon(Byte * buf)
763 place_cursor(rows - 1, 0, FALSE); // go to Status line 763 place_cursor(rows - 1, 0, FALSE); // go to Status line
764 clear_to_eol(); // clear the line 764 clear_to_eol(); // clear the line
765 cookmode(); 765 cookmode();
766 system(orig_buf+1); // run the cmd 766 system((char*)(orig_buf+1)); // run the cmd
767 rawmode(); 767 rawmode();
768 Hit_Return(); // let user see results 768 Hit_Return(); // let user see results
769 (void) alarm(3); // done waiting for input 769 (void) alarm(3); // done waiting for input
@@ -787,10 +787,10 @@ static void colon(Byte * buf)
787 psbs("No write since last change (:edit! overrides)"); 787 psbs("No write since last change (:edit! overrides)");
788 goto vc1; 788 goto vc1;
789 } 789 }
790 if (strlen(args) > 0) { 790 if (strlen((char*)args) > 0) {
791 // the user supplied a file name 791 // the user supplied a file name
792 fn= args; 792 fn= args;
793 } else if (cfn != 0 && strlen(cfn) > 0) { 793 } else if (cfn != 0 && strlen((char*)cfn) > 0) {
794 // no user supplied name- use the current filename 794 // no user supplied name- use the current filename
795 fn= cfn; 795 fn= cfn;
796 goto vc5; 796 goto vc5;
@@ -2397,7 +2397,7 @@ static Byte *get_input_line(Byte * prompt) // get input line- use "status line"
2397 last_status_cksum = 0; // force status update 2397 last_status_cksum = 0; // force status update
2398 place_cursor(rows - 1, 0, FALSE); // go to Status line, bottom of screen 2398 place_cursor(rows - 1, 0, FALSE); // go to Status line, bottom of screen
2399 clear_to_eol(); // clear the line 2399 clear_to_eol(); // clear the line
2400 write1(prompt); // write out the :, /, or ? prompt 2400 write1((char *) prompt); // write out the :, /, or ? prompt
2401 2401
2402 for (i = strlen((char *) buf); i < BUFSIZ;) { 2402 for (i = strlen((char *) buf); i < BUFSIZ;) {
2403 c = get_one_char(); // read user input 2403 c = get_one_char(); // read user input
@@ -2430,7 +2430,7 @@ static int file_size(const Byte * fn) // what is the byte size of "fn"
2430 struct stat st_buf; 2430 struct stat st_buf;
2431 int cnt, sr; 2431 int cnt, sr;
2432 2432
2433 if (fn == 0 || strlen(fn) <= 0) 2433 if (fn == 0 || strlen((char *)fn) <= 0)
2434 return (-1); 2434 return (-1);
2435 cnt = -1; 2435 cnt = -1;
2436 sr = stat((char *) fn, &st_buf); // see if file exists 2436 sr = stat((char *) fn, &st_buf); // see if file exists
@@ -2586,7 +2586,7 @@ static void place_cursor(int row, int col, int opti)
2586 strcat(cm2, "\r"); // start at col 0 2586 strcat(cm2, "\r"); // start at col 0
2587 // just send out orignal source char to get to correct place 2587 // just send out orignal source char to get to correct place
2588 screenp = &screen[row * columns]; // start of screen line 2588 screenp = &screen[row * columns]; // start of screen line
2589 strncat(cm2, screenp, col); 2589 strncat(cm2, (char* )screenp, col);
2590 2590
2591 //----- 3. Try some other way of moving cursor 2591 //----- 3. Try some other way of moving cursor
2592 //--------------------------------------------- 2592 //---------------------------------------------
@@ -2657,10 +2657,10 @@ static void screen_erase(void)
2657 memset(screen, ' ', screensize); // clear new screen 2657 memset(screen, ' ', screensize); // clear new screen
2658} 2658}
2659 2659
2660static int bufsum(char *buf, int count) 2660static int bufsum(unsigned char *buf, int count)
2661{ 2661{
2662 int sum = 0; 2662 int sum = 0;
2663 char *e = buf + count; 2663 unsigned char *e = buf + count;
2664 while (buf < e) 2664 while (buf < e)
2665 sum += *buf++; 2665 sum += *buf++;
2666 return sum; 2666 return sum;
@@ -2680,10 +2680,10 @@ static void show_status_line(void)
2680 if (have_status_msg || ((cnt > 0 && last_status_cksum != cksum))) { 2680 if (have_status_msg || ((cnt > 0 && last_status_cksum != cksum))) {
2681 last_status_cksum= cksum; // remember if we have seen this line 2681 last_status_cksum= cksum; // remember if we have seen this line
2682 place_cursor(rows - 1, 0, FALSE); // put cursor on status line 2682 place_cursor(rows - 1, 0, FALSE); // put cursor on status line
2683 write1(status_buffer); 2683 write1((char*)status_buffer);
2684 clear_to_eol(); 2684 clear_to_eol();
2685 if (have_status_msg) { 2685 if (have_status_msg) {
2686 if (((int)strlen(status_buffer) - (have_status_msg - 1)) > 2686 if (((int)strlen((char*)status_buffer) - (have_status_msg - 1)) >
2687 (columns - 1) ) { 2687 (columns - 1) ) {
2688 have_status_msg = 0; 2688 have_status_msg = 0;
2689 Hit_Return(); 2689 Hit_Return();
@@ -2937,7 +2937,7 @@ static void refresh(int full_screen)
2937 // write line out to terminal 2937 // write line out to terminal
2938 { 2938 {
2939 int nic = ce-cs+1; 2939 int nic = ce-cs+1;
2940 char *out = sp+cs; 2940 char *out = (char*)sp+cs;
2941 2941
2942 while(nic-- > 0) { 2942 while(nic-- > 0) {
2943 putchar(*out); 2943 putchar(*out);
diff --git a/loginutils/login.c b/loginutils/login.c
index b2f3166e2..4d513dcb2 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -450,7 +450,7 @@ static void checkutmp(int picky)
450 /* XXX - assumes /dev/tty?? */ 450 /* XXX - assumes /dev/tty?? */
451 strncpy(utent.ut_id, utent.ut_line + 3, sizeof utent.ut_id); 451 strncpy(utent.ut_id, utent.ut_line + 3, sizeof utent.ut_id);
452 strncpy(utent.ut_user, "LOGIN", sizeof utent.ut_user); 452 strncpy(utent.ut_user, "LOGIN", sizeof utent.ut_user);
453 time(&utent.ut_time); 453 time((time_t*)&utent.ut_time);
454 } 454 }
455} 455}
456 456
@@ -465,7 +465,7 @@ static void setutmp(const char *name, const char *line)
465{ 465{
466 utent.ut_type = USER_PROCESS; 466 utent.ut_type = USER_PROCESS;
467 strncpy(utent.ut_user, name, sizeof utent.ut_user); 467 strncpy(utent.ut_user, name, sizeof utent.ut_user);
468 time(&utent.ut_time); 468 time((time_t*)&utent.ut_time);
469 /* other fields already filled in by checkutmp above */ 469 /* other fields already filled in by checkutmp above */
470 setutent(); 470 setutent();
471 pututline(&utent); 471 pututline(&utent);
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c
index d8a630c04..fce63e54d 100644
--- a/miscutils/devfsd.c
+++ b/miscutils/devfsd.c
@@ -476,7 +476,8 @@ int devfsd_main (int argc, char **argv)
476 if (fcntl (fd, F_SETFD, FD_CLOEXEC) != 0) 476 if (fcntl (fd, F_SETFD, FD_CLOEXEC) != 0)
477 devfsd_perror_msg_and_die("FD_CLOEXEC"); 477 devfsd_perror_msg_and_die("FD_CLOEXEC");
478 478
479 do_ioctl_and_die(fd, DEVFSDIOC_GET_PROTO_REV,(int )&proto_rev); 479 if (ioctl (fd, DEVFSDIOC_GET_PROTO_REV, &proto_rev) == -1)
480 msg_logger_and_die(LOG_ERR, "ioctl");
480 481
481 /*setup initial entries */ 482 /*setup initial entries */
482 for (curr = initial_symlinks; curr->dest != NULL; ++curr) 483 for (curr = initial_symlinks; curr->dest != NULL; ++curr)
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 4bf0d45ce..750cb499b 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -1945,7 +1945,7 @@ static void process_dev (char *devname)
1945 { 1945 {
1946 no_scsi(); 1946 no_scsi();
1947 printf(" attempting to unregister hwif#%u\n", hwif); 1947 printf(" attempting to unregister hwif#%u\n", hwif);
1948 bb_ioctl(fd, HDIO_UNREGISTER_HWIF,(int *)hwif,"HDIO_UNREGISTER_HWIF"); 1948 bb_ioctl(fd, HDIO_UNREGISTER_HWIF,(int *)(unsigned long)hwif,"HDIO_UNREGISTER_HWIF");
1949 } 1949 }
1950#endif 1950#endif
1951#ifdef CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF 1951#ifdef CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF
@@ -1977,7 +1977,7 @@ static void process_dev (char *devname)
1977 else 1977 else
1978 printf("set UDMA mode to %d\n", (piomode-200)); 1978 printf("set UDMA mode to %d\n", (piomode-200));
1979 } 1979 }
1980 bb_ioctl(fd, HDIO_SET_PIO_MODE, (int *)piomode, "HDIO_SET_PIO_MODE"); 1980 bb_ioctl(fd, HDIO_SET_PIO_MODE, (int *)(unsigned long)piomode, "HDIO_SET_PIO_MODE");
1981 } 1981 }
1982 if (set_io32bit) 1982 if (set_io32bit)
1983 { 1983 {
@@ -2435,7 +2435,7 @@ identify_abort:
2435 printf(" setting bus state to %d", busstate); 2435 printf(" setting bus state to %d", busstate);
2436 bus_state_value(busstate); 2436 bus_state_value(busstate);
2437 } 2437 }
2438 bb_ioctl(fd, HDIO_SET_BUSSTATE, (int *)busstate, "HDIO_SET_BUSSTATE"); 2438 bb_ioctl(fd, HDIO_SET_BUSSTATE, (int *)(unsigned long)busstate, "HDIO_SET_BUSSTATE");
2439 } 2439 }
2440#endif 2440#endif
2441#ifdef CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF 2441#ifdef CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index a4afb0c46..8568ac1e7 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -220,7 +220,7 @@ int main(int argc, char *argv[])
220 client_config.clientid[OPT_CODE] = DHCP_CLIENT_ID; 220 client_config.clientid[OPT_CODE] = DHCP_CLIENT_ID;
221 client_config.clientid[OPT_LEN] = len; 221 client_config.clientid[OPT_LEN] = len;
222 client_config.clientid[OPT_DATA] = '\0'; 222 client_config.clientid[OPT_DATA] = '\0';
223 strncpy(client_config.clientid + OPT_DATA, optarg, len); 223 strncpy((char*)client_config.clientid + OPT_DATA, optarg, len);
224 break; 224 break;
225 case 'C': 225 case 'C':
226 if (client_config.clientid) show_usage(); 226 if (client_config.clientid) show_usage();
@@ -232,7 +232,7 @@ int main(int argc, char *argv[])
232 client_config.vendorclass = xmalloc(len + 2); 232 client_config.vendorclass = xmalloc(len + 2);
233 client_config.vendorclass[OPT_CODE] = DHCP_VENDOR; 233 client_config.vendorclass[OPT_CODE] = DHCP_VENDOR;
234 client_config.vendorclass[OPT_LEN] = len; 234 client_config.vendorclass[OPT_LEN] = len;
235 strncpy(client_config.vendorclass + OPT_DATA, optarg, len); 235 strncpy((char*)client_config.vendorclass + OPT_DATA, optarg, len);
236 break; 236 break;
237 case 'f': 237 case 'f':
238 client_config.foreground = 1; 238 client_config.foreground = 1;
@@ -247,7 +247,7 @@ int main(int argc, char *argv[])
247 client_config.hostname = xmalloc(len + 2); 247 client_config.hostname = xmalloc(len + 2);
248 client_config.hostname[OPT_CODE] = DHCP_HOST_NAME; 248 client_config.hostname[OPT_CODE] = DHCP_HOST_NAME;
249 client_config.hostname[OPT_LEN] = len; 249 client_config.hostname[OPT_LEN] = len;
250 strncpy(client_config.hostname + 2, optarg, len); 250 strncpy((char*)client_config.hostname + 2, optarg, len);
251 break; 251 break;
252 case 'F': 252 case 'F':
253 len = strlen(optarg) > 255 ? 255 : strlen(optarg); 253 len = strlen(optarg) > 255 ? 255 : strlen(optarg);
@@ -264,7 +264,7 @@ int main(int argc, char *argv[])
264 client_config.fqdn[OPT_LEN + 1] = 0x1; 264 client_config.fqdn[OPT_LEN + 1] = 0x1;
265 client_config.fqdn[OPT_LEN + 2] = 0; 265 client_config.fqdn[OPT_LEN + 2] = 0;
266 client_config.fqdn[OPT_LEN + 3] = 0; 266 client_config.fqdn[OPT_LEN + 3] = 0;
267 strncpy(client_config.fqdn + 5, optarg, len); 267 strncpy((char*)client_config.fqdn + 5, optarg, len);
268 break; 268 break;
269 case 'i': 269 case 'i':
270 client_config.interface = optarg; 270 client_config.interface = optarg;
diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c
index 64a910031..1baec55e2 100644
--- a/networking/udhcp/packet.c
+++ b/networking/udhcp/packet.c
@@ -70,7 +70,7 @@ int get_packet(struct dhcpMessage *packet, int fd)
70 if (packet->op == BOOTREQUEST && (vendor = get_option(packet, DHCP_VENDOR))) { 70 if (packet->op == BOOTREQUEST && (vendor = get_option(packet, DHCP_VENDOR))) {
71 for (i = 0; broken_vendors[i][0]; i++) { 71 for (i = 0; broken_vendors[i][0]; i++) {
72 if (vendor[OPT_LEN - 2] == (uint8_t) strlen(broken_vendors[i]) && 72 if (vendor[OPT_LEN - 2] == (uint8_t) strlen(broken_vendors[i]) &&
73 !strncmp(vendor, broken_vendors[i], vendor[OPT_LEN - 2])) { 73 !strncmp((char*)vendor, broken_vendors[i], vendor[OPT_LEN - 2])) {
74 DEBUG(LOG_INFO, "broken client (%s), forcing broadcast", 74 DEBUG(LOG_INFO, "broken client (%s), forcing broadcast",
75 broken_vendors[i]); 75 broken_vendors[i]);
76 packet->flags |= htons(BROADCAST_FLAG); 76 packet->flags |= htons(BROADCAST_FLAG);
diff --git a/networking/udhcp/serverpacket.c b/networking/udhcp/serverpacket.c
index 1b89862b2..fe880b4a0 100644
--- a/networking/udhcp/serverpacket.c
+++ b/networking/udhcp/serverpacket.c
@@ -98,9 +98,9 @@ static void add_bootp_options(struct dhcpMessage *packet)
98{ 98{
99 packet->siaddr = server_config.siaddr; 99 packet->siaddr = server_config.siaddr;
100 if (server_config.sname) 100 if (server_config.sname)
101 strncpy(packet->sname, server_config.sname, sizeof(packet->sname) - 1); 101 strncpy((char*)packet->sname, server_config.sname, sizeof(packet->sname) - 1);
102 if (server_config.boot_file) 102 if (server_config.boot_file)
103 strncpy(packet->file, server_config.boot_file, sizeof(packet->file) - 1); 103 strncpy((char*)packet->file, server_config.boot_file, sizeof(packet->file) - 1);
104} 104}
105 105
106 106
diff --git a/procps/fuser.c b/procps/fuser.c
index 7ee56fbd9..c0101e635 100644
--- a/procps/fuser.c
+++ b/procps/fuser.c
@@ -143,7 +143,7 @@ static int fuser_scan_proc_net(int opts, const char *proto,
143 char addr[128]; 143 char addr[128];
144 ino_t tmp_inode; 144 ino_t tmp_inode;
145 dev_t tmp_dev; 145 dev_t tmp_dev;
146 uint64_t uint64_inode; 146 long long uint64_inode;
147 int tmp_port; 147 int tmp_port;
148 FILE *f; 148 FILE *f;
149 149
@@ -194,7 +194,7 @@ static int fuser_scan_pid_maps(int opts, const char *fname, pid_t pid,
194 char line[FUSER_MAX_LINE + 1]; 194 char line[FUSER_MAX_LINE + 1];
195 int major, minor; 195 int major, minor;
196 ino_t inode; 196 ino_t inode;
197 uint64_t uint64_inode; 197 long long uint64_inode;
198 dev_t dev; 198 dev_t dev;
199 199
200 if (!(file = fopen(fname, "r"))) return 0; 200 if (!(file = fopen(fname, "r"))) return 0;
diff --git a/procps/sysctl.c b/procps/sysctl.c
index dbb82e69c..b8835c0d8 100644
--- a/procps/sysctl.c
+++ b/procps/sysctl.c
@@ -209,7 +209,7 @@ int sysctl_write_setting(const char *setting, int output)
209 return -2; 209 return -2;
210 } 210 }
211 211
212 tmpname = bb_xasprintf("%s%.*s", PROC_PATH, (equals - name), name); 212 tmpname = bb_xasprintf("%s%.*s", PROC_PATH, (int)(equals - name), name);
213 outname = bb_xstrdup(tmpname + strlen(PROC_PATH)); 213 outname = bb_xstrdup(tmpname + strlen(PROC_PATH));
214 214
215 while ((cptr = strchr(tmpname, '.')) != NULL) 215 while ((cptr = strchr(tmpname, '.')) != NULL)
diff --git a/shell/ash.c b/shell/ash.c
index 3564d850b..e9e6def22 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -1402,8 +1402,10 @@ static void unsetfunc(const char *);
1402 1402
1403#ifdef CONFIG_ASH_MATH_SUPPORT_64 1403#ifdef CONFIG_ASH_MATH_SUPPORT_64
1404typedef int64_t arith_t; 1404typedef int64_t arith_t;
1405#define arith_t_type (long long)
1405#else 1406#else
1406typedef long arith_t; 1407typedef long arith_t;
1408#define arith_t_type (long)
1407#endif 1409#endif
1408 1410
1409#ifdef CONFIG_ASH_MATH_SUPPORT 1411#ifdef CONFIG_ASH_MATH_SUPPORT
@@ -10132,15 +10134,15 @@ readtoken1(int firstc, int syntax, char *eofmark, int striptabs)
10132 char *out; 10134 char *out;
10133 int len; 10135 int len;
10134 char line[EOFMARKLEN + 1]; 10136 char line[EOFMARKLEN + 1];
10135 struct nodelist *bqlist; 10137 struct nodelist *bqlist = 0;
10136 int quotef; 10138 int quotef = 0;
10137 int dblquote; 10139 int dblquote = 0;
10138 int varnest; /* levels of variables expansion */ 10140 int varnest = 0; /* levels of variables expansion */
10139 int arinest; /* levels of arithmetic expansion */ 10141 int arinest = 0; /* levels of arithmetic expansion */
10140 int parenlevel; /* levels of parens in arithmetic */ 10142 int parenlevel = 0; /* levels of parens in arithmetic */
10141 int dqvarnest; /* levels of variables expansion within double quotes */ 10143 int dqvarnest = 0; /* levels of variables expansion within double quotes */
10142 int oldstyle; 10144 int oldstyle = 0;
10143 int prevsyntax; /* syntax before arithmetic */ 10145 int prevsyntax = 0; /* syntax before arithmetic */
10144#if __GNUC__ 10146#if __GNUC__
10145 /* Avoid longjmp clobbering */ 10147 /* Avoid longjmp clobbering */
10146 (void) &out; 10148 (void) &out;
@@ -10563,7 +10565,7 @@ parsebackq: {
10563 struct jmploc jmploc; 10565 struct jmploc jmploc;
10564 struct jmploc *volatile savehandler; 10566 struct jmploc *volatile savehandler;
10565 size_t savelen; 10567 size_t savelen;
10566 int saveprompt; 10568 int saveprompt = 0;
10567#ifdef __GNUC__ 10569#ifdef __GNUC__
10568 (void) &saveprompt; 10570 (void) &saveprompt;
10569#endif 10571#endif
@@ -13380,9 +13382,9 @@ arith_apply(operator op, v_n_t *numstack, v_n_t **numstackptr)
13380 } 13382 }
13381 /* save to shell variable */ 13383 /* save to shell variable */
13382#ifdef CONFIG_ASH_MATH_SUPPORT_64 13384#ifdef CONFIG_ASH_MATH_SUPPORT_64
13383 snprintf(buf, sizeof(buf), "%lld", rez); 13385 snprintf(buf, sizeof(buf), "%lld", arith_t_type rez);
13384#else 13386#else
13385 snprintf(buf, sizeof(buf), "%ld", rez); 13387 snprintf(buf, sizeof(buf), "%ld", arith_t_type rez);
13386#endif 13388#endif
13387 setvar(numptr_m1->var, buf, 0); 13389 setvar(numptr_m1->var, buf, 0);
13388 /* after saving, make previous value for v++ or v-- */ 13390 /* after saving, make previous value for v++ or v-- */
diff --git a/shell/hush.c b/shell/hush.c
index ff29974b6..096b40251 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -2614,10 +2614,10 @@ int parse_stream(o_string *dest, struct p_context *ctx,
2614 return 0; 2614 return 0;
2615} 2615}
2616 2616
2617static void mapset(const unsigned char *set, int code) 2617static void mapset(const char *set, int code)
2618{ 2618{
2619 const unsigned char *s; 2619 const char *s;
2620 for (s=set; *s; s++) map[*s] = code; 2620 for (s=set; *s; s++) map[(int)*s] = code;
2621} 2621}
2622 2622
2623static void update_ifs_map(void) 2623static void update_ifs_map(void)
diff --git a/shell/lash.c b/shell/lash.c
index 56a3a23dd..1b8aca506 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1440,7 +1440,7 @@ static int busy_loop(FILE * input)
1440 char *next_command = NULL; 1440 char *next_command = NULL;
1441 struct job newjob; 1441 struct job newjob;
1442 int i; 1442 int i;
1443 int inbg; 1443 int inbg = 0;
1444 int status; 1444 int status;
1445#ifdef CONFIG_LASH_JOB_CONTROL 1445#ifdef CONFIG_LASH_JOB_CONTROL
1446 pid_t parent_pgrp; 1446 pid_t parent_pgrp;
diff --git a/shell/msh.c b/shell/msh.c
index 08ca792fa..d56db5714 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -1622,7 +1622,7 @@ static void initarea()
1622 brkaddr = malloc(AREASIZE); 1622 brkaddr = malloc(AREASIZE);
1623 brktop = brkaddr + AREASIZE; 1623 brktop = brkaddr + AREASIZE;
1624 1624
1625 while ((int) sbrk(0) & ALIGN) 1625 while ((long) sbrk(0) & ALIGN)
1626 sbrk(1); 1626 sbrk(1);
1627 areabot = (struct region *) sbrk(REGSIZE); 1627 areabot = (struct region *) sbrk(REGSIZE);
1628 1628