]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed a bug in zlib usage.
authorcurt <curt>
Wed, 22 Apr 1998 13:14:46 +0000 (13:14 +0000)
committercurt <curt>
Wed, 22 Apr 1998 13:14:46 +0000 (13:14 +0000)
DEM/dem.cxx
DEM/dem.hxx

index 821f23fc3e95f86b35dfe2e753db03bc393efbd4..462013bf9b2bba1da70a41095337e9ac687199df 100644 (file)
@@ -125,7 +125,7 @@ int fgDEM::close ( void ) {
 
 
 // return next token from input stream
-static void next_token(gzFile *fd, char *token) {
+static void next_token(gzFile fd, char *token) {
     int i, result;
     char c;
 
@@ -152,7 +152,7 @@ static void next_token(gzFile *fd, char *token) {
 
 
 // return next integer from input stream
-static int next_int(gzFile *fd) {
+static int next_int(gzFile fd) {
     char token[80];
 
     next_token(fd, token);
@@ -161,7 +161,7 @@ static int next_int(gzFile *fd) {
 
 
 // return next double from input stream
-static double next_double(gzFile *fd) {
+static double next_double(gzFile fd) {
     char token[80];
 
     next_token(fd, token);
@@ -170,7 +170,7 @@ static double next_double(gzFile *fd) {
 
 
 // return next exponential num from input stream
-static int next_exp(gzFile *fd) {
+static int next_exp(gzFile fd) {
     char token[80];
     double mantissa;
     int exp, acc;
@@ -772,6 +772,9 @@ fgDEM::~fgDEM( void ) {
 
 
 // $Log$
+// Revision 1.4  1998/04/22 13:14:46  curt
+// Fixed a bug in zlib usage.
+//
 // Revision 1.3  1998/04/18 03:53:05  curt
 // Added zlib support.
 //
index 4a84871d27c0deb5ec5de43374a858572eab9e03..065ead15ca638d4cd3764d4d1ba99a75c0c72e00 100644 (file)
@@ -45,7 +45,7 @@
 
 class fgDEM {
     // file pointer for input
-    gzFile *fd;
+    gzFile fd;
 
     // coordinates (in arc seconds) of south west corner
     double originx, originy;
@@ -79,7 +79,7 @@ class fgDEM {
 
 public:
 
-    // Constructor (opens a DEM file)
+    // Constructor
     fgDEM( void );
 
     // open a DEM file (use "-" if input is coming from stdin)
@@ -130,6 +130,9 @@ public:
 
 
 // $Log$
+// Revision 1.5  1998/04/22 13:14:46  curt
+// Fixed a bug in zlib usage.
+//
 // Revision 1.4  1998/04/21 17:03:41  curt
 // Prepairing for C++ integration.
 //