mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 07:11:05 +01:00
Don't depend on gcc's feature of interpreting `int foo(c) char c; ...'
as `int foo(char c) ...' if there is a bogus prototype `int foo(char c);' in scope.
This commit is contained in:
parent
ed2be8eabe
commit
b2b392c442
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27121
@ -23,7 +23,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: db_sym.c,v 1.18 1997/02/22 09:28:29 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -102,7 +102,7 @@ boolean_t
|
||||
db_eqname(src, dst, c)
|
||||
char *src;
|
||||
char *dst;
|
||||
char c;
|
||||
int c;
|
||||
{
|
||||
if (!strcmp(src, dst))
|
||||
return (TRUE);
|
||||
|
@ -23,7 +23,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: db_sym.h,v 1.12 1997/02/22 09:28:30 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef _DDB_DB_SYM_H_
|
||||
@ -91,7 +91,7 @@ void db_symbol_values __P((db_sym_t, char **, db_expr_t *));
|
||||
db_symbol_values(db_search_symbol(val,DB_STGY_XTRN,offp),namep,0)
|
||||
/* ditto, but no locals */
|
||||
|
||||
int db_eqname __P((char *, char *, char));
|
||||
int db_eqname __P((char *, char *, int));
|
||||
/* strcmp, modulo leading char */
|
||||
|
||||
void db_printsym __P((db_expr_t, db_strategy_t));
|
||||
|
Loading…
Reference in New Issue
Block a user