svn commit: r225816 - stable/9/usr.bin/fetch

Dag-Erling Smorgrav des at FreeBSD.org
Tue Sep 27 19:08:28 UTC 2011


Author: des
Date: Tue Sep 27 19:08:27 2011
New Revision: 225816
URL: http://svn.freebsd.org/changeset/base/225816

Log:
  MFH r225805: use fseeko(2) instead of fseek(2).
  
  Approved by:	re (kib)

Modified:
  stable/9/usr.bin/fetch/fetch.c
Directory Properties:
  stable/9/usr.bin/fetch/   (props changed)

Modified: stable/9/usr.bin/fetch/fetch.c
==============================================================================
--- stable/9/usr.bin/fetch/fetch.c	Tue Sep 27 19:02:44 2011	(r225815)
+++ stable/9/usr.bin/fetch/fetch.c	Tue Sep 27 19:08:27 2011	(r225816)
@@ -561,8 +561,8 @@ fetch(char *URL, const char *path)
 			}
 		}
 		/* seek to where we left off */
-		if (of != NULL && fseek(of, url->offset, SEEK_SET) != 0) {
-			warn("%s: fseek()", path);
+		if (of != NULL && fseeko(of, url->offset, SEEK_SET) != 0) {
+			warn("%s: fseeko()", path);
 			fclose(of);
 			of = NULL;
 			/* picked up again later */


More information about the svn-src-stable-other mailing list