Fix printfs with too few or too many parms, remove unused vars, fix incorrect flag tests, other code cleanup.

This commit is contained in:
Kees van Reeuwijk
2010-04-01 13:25:05 +00:00
parent c3f649557e
commit fc7dced1fa
59 changed files with 127 additions and 222 deletions

View File

@@ -206,7 +206,7 @@ date_of(const register struct dsttype *dst, const struct tm *timep)
if (dst->ds_type != 'M') {
return dst->ds_date[0] -
(dst->ds_type == 'J'
((dst->ds_type == 'J')
&& leap
&& dst->ds_date[0] < 58);
}

View File

@@ -385,7 +385,7 @@ message *mp;
/*===========================================================================*
* nop_prepare *
*===========================================================================*/
PUBLIC struct device *nop_prepare(device)
PUBLIC struct device *nop_prepare(int device)
{
/* Nothing to prepare for. */
return(NIL_DEV);