lint: fix indentation and spacing, add a missing 'else' to 'else if'
No functional change.
This commit is contained in:
parent
b451bcfc45
commit
291b04874e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: decl.c,v 1.253 2022/03/13 14:40:36 rillig Exp $ */
|
||||
/* $NetBSD: decl.c,v 1.254 2022/04/01 20:29:37 rillig Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
|
||||
|
@ -38,7 +38,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(__RCSID) && !defined(lint)
|
||||
__RCSID("$NetBSD: decl.c,v 1.253 2022/03/13 14:40:36 rillig Exp $");
|
||||
__RCSID("$NetBSD: decl.c,v 1.254 2022/04/01 20:29:37 rillig Exp $");
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -988,7 +988,7 @@ check_type(sym_t *sym)
|
|||
warning(228);
|
||||
}
|
||||
}
|
||||
} if (to == ARRAY) {
|
||||
} else if (to == ARRAY) {
|
||||
if (t == FUNC) {
|
||||
/* array of function is illegal */
|
||||
error(16);
|
||||
|
@ -2170,7 +2170,8 @@ eqtype(const type_t *tp1, const type_t *tp2,
|
|||
t = INT;
|
||||
} else if (t == USHORT) {
|
||||
/* CONSTCOND */
|
||||
t = TARG_INT_MAX < TARG_USHRT_MAX || tflag ? UINT : INT;
|
||||
t = TARG_INT_MAX < TARG_USHRT_MAX || tflag
|
||||
? UINT : INT;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue