Correct prototype for _findnext()/_findclose()

Hans Leidekker <hans-p/[email protected]> Sun, 28 Mar 2004 20:51:44 -0500
Newsgroups gmane.comp.gnu.mingw.patches
Organization VU Amsterdam - Dienst IT
Message-ID <[email protected]>
--Boundary-00=_wE4ZApqMaH8rWtU
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


_findnext()/_findclose() take a long, not an int.

Documented here: 

  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_crt__findnext.2c_._findnexti64.2c_._wfindnext.2c_._wfindnexti64.asp

Changelog:

2004-03-28  Hans Leidekker  <hans-p/[email protected]>

    * include/io.h: (_findnext(), _findclose()): Correct prototype.

--Boundary-00=_wE4ZApqMaH8rWtU
Content-Type: text/x-diff;
  charset="us-ascii";
  name="mingw_runtime_include_io_h.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
	filename="mingw_runtime_include_io_h.diff"

Index: include/io.h
===================================================================
RCS file: /cvsroot/mingw/runtime/include/io.h,v
retrieving revision 1.8
diff -u -r1.8 io.h
--- include/io.h        10 Oct 2003 15:02:04 -0000      1.8
+++ include/io.h        20 Mar 2004 14:52:57 -0000
@@ -123,8 +123,8 @@
  * and 0 if a match was found. Call _findclose when you are finished.
  */
 _CRTIMP int __cdecl _findfirst (const char*, struct _finddata_t*);
-_CRTIMP int __cdecl _findnext (int, struct _finddata_t*);
-_CRTIMP int __cdecl _findclose (int);
+_CRTIMP int __cdecl _findnext (long, struct _finddata_t*);
+_CRTIMP int __cdecl _findclose (long);

 _CRTIMP int __cdecl _chdir (const char*);
 _CRTIMP char* __cdecl _getcwd (char*, int);

--Boundary-00=_wE4ZApqMaH8rWtU--


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click