Message-ID: <39563FB5.A8C1172F@softhome.net> Date: Sun, 25 Jun 2000 19:21:57 +0200 From: Laurynas Biveinis X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: lt,en MIME-Version: 1.0 To: DJGPP Workers Subject: Patch: minor getcwd.c cleanup Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com As a symlink side effect: it fixes one signed/unsigned comparison warning and removes two redudant includes. OK to commit? Laurynas Index: getcwd.c =================================================================== RCS file: /cvs/djgpp/djgpp/src/libc/posix/unistd/getcwd.c,v retrieving revision 1.3 diff -u -r1.3 getcwd.c --- getcwd.c 1996/08/31 22:09:32 1.3 +++ getcwd.c 2000/06/25 17:16:51 @@ -4,8 +4,6 @@ #include #include #include -#include -#include #include #include #include @@ -19,7 +17,8 @@ { char *bp; __dpmi_regs r; - int needed_length, c; + size_t needed_length; + int c; unsigned use_lfn = _USE_LFN; int preserve_case = _preserve_fncase(); char *name_start;