Fix warnings

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1073 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1996-11-24 18:49:03 +00:00
parent fdcdbf8975
commit f53d807716
3 changed files with 6 additions and 5 deletions

View File

@@ -41,13 +41,14 @@
RCSID("$Id$"); RCSID("$Id$");
#endif #endif
#include <unistd.h>
#include <sys/param.h> #include <sys/param.h>
#include "protos.h" #include "protos.h"
#include "roken.h" #include "roken.h"
char* char*
getcwd(char *path, int size) getcwd(char *path, size_t size)
{ {
char xxx[MaxPathLen]; char xxx[MaxPathLen];
char *ret; char *ret;

View File

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

View File

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