[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PureC



Here are some diffs to get rid of some warnings:

diff -r orig/dosdir.c ./dosdir.c
740c740
< 	if (( r = path2cookie(name, temp1, &dir) ))
---
> 	if (0 != ( (r = path2cookie(name, temp1, &dir)) ))
761c761
< 	if (( r = (*fc.fs->getxattr)(&fc, &xattr) < 0 ))
---
> 	if (0 != ( r = (*fc.fs->getxattr)(&fc, &xattr) < 0 ))
diff -r orig/main.c ./main.c
1378c1378
< 	    int fd = f_open (arg1, 0);
---
> 	    long fd = f_open (arg1, 0);
1383,1384c1383,1384
< 	    do_file (fd);
< 	    f_close (fd);
---
> 	    do_file ((int) fd);
> 	    f_close ((int) fd);
diff -r orig/memprot.c ./memprot.c
390a391,392
> 	UNUSED(proc);
> 
402,404c404,406
<     b_index = (start >> LOG2_16_MEG);
<     c_index = (start >> LOG2_ONE_MEG) & 0xf;
<     d_index = (start >> LOG2_EIGHT_K) & 0x7f;
---
>     b_index = (int) (start >> LOG2_16_MEG);
>     c_index = (int) (start >> LOG2_ONE_MEG) & 0xf;
>     d_index = (int) (start >> LOG2_EIGHT_K) & 0x7f;
1139a1142,1144
> #else
> 	UNUSED(proc);
> 	UNUSED(bigone);
diff -r orig/procfs.c ./procfs.c
577c577
< 		    !(pf = p->handle[pfd]))
---
> 		    NULL == (pf = p->handle[pfd]))
diff -r orig/unifs.c ./unifs.c
693c693
< 	if (cmd == FS_INSTALL) { /* install a new filesystem */
---
> 	if (cmd == (int) FS_INSTALL) { /* install a new filesystem */
704c704
< 	} else if (cmd == FS_MOUNT) {  /* install a new gemdos-only device for this FS */
---
> 	} else if (cmd == (int) FS_MOUNT) {  /* install a new gemdos-only device for this FS */
735c735
< 	} else if (cmd == FS_UNMOUNT) {  /* remove a file system's directory */
---
> 	} else if (cmd == (int) FS_UNMOUNT) {  /* remove a file system's directory */
768c768
< 	} else if (cmd == FS_UNINSTALL) {    /* remove file system from kernel list */
---
> 	} else if (cmd == (int) FS_UNINSTALL) {    /* remove file system from kernel list */
diff -r orig/xbios.c ./xbios.c
276c276
< 		(void)(*((volatile char *)ptr));
---
> 		(*((volatile char *)ptr));

-- 
---------------------------------------------------
Julian F. Reschke, Hensenstr. 142, D-48161 Muenster
 eMail: reschke@math.uni-muenster.de jr@ms.maus.de
___________________________________________________