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 <stdlib.h> | ||||||
| #include <string.h> | #include <string.h> | ||||||
| #include <ctype.h> | #include <ctype.h> | ||||||
|  |  | ||||||
|  | #include "proto.h" | ||||||
|  | #include "roken.h" | ||||||
| #include "otp.h" | #include "otp.h" | ||||||
|  |  | ||||||
| struct e { | struct e { | ||||||
| @@ -2120,7 +2123,8 @@ get_stdword (char *s, void *v) | |||||||
|  |  | ||||||
|   e.s = s; |   e.s = s; | ||||||
|   e.n = -1; |   e.n = -1; | ||||||
|   r = bsearch (&e, inv_std_dict, sizeof(inv_std_dict)/sizeof(*inv_std_dict), |   r = (struct e *) bsearch (&e, inv_std_dict, | ||||||
|  | 			    sizeof(inv_std_dict)/sizeof(*inv_std_dict), | ||||||
| 			    sizeof(*inv_std_dict), cmp); | 			    sizeof(*inv_std_dict), cmp); | ||||||
|   if (r) |   if (r) | ||||||
|     return r->n; |     return r->n; | ||||||
|   | |||||||
| @@ -43,6 +43,9 @@ RCSID("$Id$"); | |||||||
|  |  | ||||||
| #include <sys/param.h> | #include <sys/param.h> | ||||||
|  |  | ||||||
|  | #include "protos.h" | ||||||
|  | #include "roken.h" | ||||||
|  |  | ||||||
| char* | char* | ||||||
| getcwd(char *path, int size) | getcwd(char *path, int size) | ||||||
| { | { | ||||||
|   | |||||||
| @@ -120,7 +120,7 @@ int inet_aton(const char *cp, struct in_addr *adr); | |||||||
| #endif | #endif | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #if !defined(HAVE_GETCWD) | #if !defined(HAVE_GETCWD) || defined(BROKEN_GETCWD) | ||||||
| char* getcwd(char *path, int size); | char* getcwd(char *path, int size); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   | |||||||
| @@ -120,7 +120,7 @@ int inet_aton(const char *cp, struct in_addr *adr); | |||||||
| #endif | #endif | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #if !defined(HAVE_GETCWD) | #if !defined(HAVE_GETCWD) || defined(BROKEN_GETCWD) | ||||||
| char* getcwd(char *path, int size); | char* getcwd(char *path, int size); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Björn Groenvall
					Björn Groenvall