Browse Source

iostream lib: use G_fseek

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43100 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 15 years ago
parent
commit
e6ee57836d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      lib/iostream/ami_stream.cc

+ 1 - 3
lib/iostream/ami_stream.cc

@@ -160,9 +160,7 @@ open_stream(char* pathname, AMI_stream_type st) {
   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+");