Fix some warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1072 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -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
|
||||
|
@@ -43,6 +43,9 @@ RCSID("$Id$");
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
#include "protos.h"
|
||||
#include "roken.h"
|
||||
|
||||
char*
|
||||
getcwd(char *path, int size)
|
||||
{
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user