[GRASS-SVN] r43100 - grass/trunk/lib/iostream

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 14 12:24:11 EDT 2010


Author: mmetz
Date: 2010-08-14 16:24:10 +0000 (Sat, 14 Aug 2010)
New Revision: 43100

Modified:
   grass/trunk/lib/iostream/ami_stream.cc
Log:
iostream lib: use G_fseek

Modified: grass/trunk/lib/iostream/ami_stream.cc
===================================================================
--- grass/trunk/lib/iostream/ami_stream.cc	2010-08-14 16:23:33 UTC (rev 43099)
+++ grass/trunk/lib/iostream/ami_stream.cc	2010-08-14 16:24:10 UTC (rev 43100)
@@ -160,9 +160,7 @@
   case AMI_APPEND_STREAM:
     fp = fopen(pathname, "ab+");
     assert(fp);
-    if (fseek (fp, 0, SEEK_END) == -1) {
-      perror("AMI_STREAM: fseek failed ");
-    }
+    G_fseek (fp, 0, SEEK_END);
     break;
   case AMI_READ_WRITE_STREAM: 
       fp = fopen(pathname, "rb+");



More information about the grass-commit mailing list