From f53d80771664f6a60a9517eda43656f0a6cfbd80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Groenvall?= Date: Sun, 24 Nov 1996 18:49:03 +0000 Subject: [PATCH] Fix warnings git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1073 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/getcwd.c | 3 ++- lib/roken/roken.h | 4 ++-- lib/roken/roken.h.in | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/roken/getcwd.c b/lib/roken/getcwd.c index cf8d813cb..305707a07 100644 --- a/lib/roken/getcwd.c +++ b/lib/roken/getcwd.c @@ -41,13 +41,14 @@ RCSID("$Id$"); #endif +#include #include #include "protos.h" #include "roken.h" char* -getcwd(char *path, int size) +getcwd(char *path, size_t size) { char xxx[MaxPathLen]; char *ret; diff --git a/lib/roken/roken.h b/lib/roken/roken.h index 59c048e7e..c24e1b492 100644 --- a/lib/roken/roken.h +++ b/lib/roken/roken.h @@ -120,8 +120,8 @@ int inet_aton(const char *cp, struct in_addr *adr); #endif #endif -#if !defined(HAVE_GETCWD) || defined(BROKEN_GETCWD) -char* getcwd(char *path, int size); +#if !defined(HAVE_GETCWD) +char* getcwd(char *path, size_t size); #endif #ifndef HAVE_GETENT diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 59c048e7e..c24e1b492 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -120,8 +120,8 @@ int inet_aton(const char *cp, struct in_addr *adr); #endif #endif -#if !defined(HAVE_GETCWD) || defined(BROKEN_GETCWD) -char* getcwd(char *path, int size); +#if !defined(HAVE_GETCWD) +char* getcwd(char *path, size_t size); #endif #ifndef HAVE_GETENT