Fix some warnings.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1072 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1996-11-24 16:58:07 +00:00
parent 6ec154ff86
commit fdcdbf8975
4 changed files with 11 additions and 4 deletions

View File

@@ -45,6 +45,9 @@ RCSID("$Id$");
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "proto.h"
#include "roken.h"
#include "otp.h"
struct e {
@@ -2120,8 +2123,9 @@ get_stdword (char *s, void *v)
e.s = s;
e.n = -1;
r = bsearch (&e, inv_std_dict, sizeof(inv_std_dict)/sizeof(*inv_std_dict),
sizeof(*inv_std_dict), cmp);
r = (struct e *) bsearch (&e, inv_std_dict,
sizeof(inv_std_dict)/sizeof(*inv_std_dict),
sizeof(*inv_std_dict), cmp);
if (r)
return r->n;
else

View File

@@ -43,6 +43,9 @@ RCSID("$Id$");
#include <sys/param.h>
#include "protos.h"
#include "roken.h"
char*
getcwd(char *path, int size)
{

View File

@@ -120,7 +120,7 @@ int inet_aton(const char *cp, struct in_addr *adr);
#endif
#endif
#if !defined(HAVE_GETCWD)
#if !defined(HAVE_GETCWD) || defined(BROKEN_GETCWD)
char* getcwd(char *path, int size);
#endif

View File

@@ -120,7 +120,7 @@ int inet_aton(const char *cp, struct in_addr *adr);
#endif
#endif
#if !defined(HAVE_GETCWD)
#if !defined(HAVE_GETCWD) || defined(BROKEN_GETCWD)
char* getcwd(char *path, int size);
#endif