From b2b392c442aa6d01120ae73bdf2aa01c5a8b6205 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Mon, 30 Jun 1997 23:49:17 +0000 Subject: [PATCH] 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. --- sys/ddb/db_sym.c | 4 ++-- sys/ddb/db_sym.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c index f8628beddac..7a83f7c0750 100644 --- a/sys/ddb/db_sym.c +++ b/sys/ddb/db_sym.c @@ -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); diff --git a/sys/ddb/db_sym.h b/sys/ddb/db_sym.h index 70e552b9816..d3419e40614 100644 --- a/sys/ddb/db_sym.h +++ b/sys/ddb/db_sym.h @@ -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));