Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!ukma!sean From: sean@ms.uky.edu (Sean Casey) Newsgroups: gnu.gcc Subject: Prototyping promotion problem. Message-ID: <14331@s.ms.uky.edu> Date: 26 Feb 90 19:19:58 GMT Organization: The Leaning Tower of Patterson Office @ The Univ. of KY Lines: 31 Could someone explain what the heck I am supposed to do about the following? It seems to me that if your prototype matches the declaration, everything should be hunky dory. 1. Is this problem typical to all ANSI C compilers? 2. The variable *must* be char. What am I supposed to do? (prototypes.h) int addusage(char *name, char type, char *args, char *usage); (function def, this file includes prototypes.h) addusage(name, type, args, usage) char *name; char type; char *args; char *usage; { etc. } (error message) gcc -g -pg -DSTRINGS_H -DTIME_H -c usage.c &151 usage.c: In function addusage: usage.c:38: argument `type' doesn't match function prototype usage.c:38: a formal parameter type that promotes to `int' usage.c:38: can match only `int' in the prototype 151: *** Error code 1 Make: . Stop. -- *** Sean Casey sean@ms.uky.edu, sean@ukma.bitnet, ukma!sean