[331] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: Mystifying problem with function prototypes....

daemon@ATHENA.MIT.EDU (Ralph Swick)
Tue Oct 16 15:54:09 1990

To: tytso@ATHENA.MIT.EDU
Cc: krbdev@ATHENA.MIT.EDU
In-Reply-To: Your message of Tue, 16 Oct 90 14:40:30 -0400.
Date: Tue, 16 Oct 90 15:53:24 EDT
From: Ralph Swick <swick@ATHENA.MIT.EDU>

    kdb_dbm.c:976: a formal parameter type that promotes to `int'
    kdb_dbm.c:976: can match only `int' in the prototype

This means exactly what it says.  If you use K&R-style function declarations
then you have to use widened types in all the prototypes.  You can only
use the "real" types in the prototype if you use ANSI-style declarations,
in which case you can't mix gcc & pcc object files.  That's the way
it works, unfortunately.

    Other prototypes in kdb.h reference krb5_boolean with out any problem at
    all.

Then something else is bizarre; it should only be possible to use
pointers to narrow types in the prototypes.  I had to do some crocky
stuff in the X headers to deal with this.  More details if you want 'em.

     Am I missing something really stupid?

Dunno, but the business of include/krb5/kdb_dbm.h
#define'ing krb5_dbm_db_set_lockmode krb5_db_set_lockmode
seems a tad crocky to me by-the-way.  I assume there was
a legitimate reason at one time.  Are you confident you're
building with the right headers?

home help back first fref pref prev next nref lref last post