Index: trunk/BNC/bncpostprocess.cpp
===================================================================
--- trunk/BNC/bncpostprocess.cpp	(revision 3682)
+++ trunk/BNC/bncpostprocess.cpp	(revision 3683)
@@ -100,5 +100,5 @@
   // ----------------
   t_eph* eph = 0;
-  while (_rnxNavFile->getNextEph(eph) == success) {
+  while ( (eph = _rnxNavFile->getNextEph()) != 0 ) {
     if (_pppClient->putNewEph(eph) != success) {
       delete eph; eph = 0;
@@ -109,5 +109,5 @@
   // -----------------
   const t_rnxObsFile::t_epo* epo = 0;
-  while ( (epo = _rnxObsFile->nextEpoch()) != 0) {
+  while ( (epo = _rnxObsFile->nextEpoch()) != 0 ) {
     for (int iObs = 0; iObs < epo->satObs.size(); iObs++) {
       const t_rnxObsFile::t_satObs& satObs = epo->satObs[iObs];
Index: trunk/BNC/rnxnavfile.cpp
===================================================================
--- trunk/BNC/rnxnavfile.cpp	(revision 3682)
+++ trunk/BNC/rnxnavfile.cpp	(revision 3683)
@@ -104,7 +104,7 @@
 // Read Next Ephemeris
 ////////////////////////////////////////////////////////////////////////////
-t_irc t_rnxNavFile::getNextEph(t_eph* eph) {
+t_eph* t_rnxNavFile::getNextEph() {
 
-  eph = 0;
+  t_eph* eph = 0;
 
   while (_stream->status() == QTextStream::Ok && !_stream->atEnd()) {
@@ -146,10 +146,9 @@
     }
     if (eph && eph->ok()) {
-      return success;
+      return eph;
     }
   }
 
   delete eph;
-  eph = 0;
-  return failure;
+  return 0;
 }
Index: trunk/BNC/rnxnavfile.h
===================================================================
--- trunk/BNC/rnxnavfile.h	(revision 3682)
+++ trunk/BNC/rnxnavfile.h	(revision 3683)
@@ -50,5 +50,5 @@
   t_rnxNavFile(QString fileName);
   ~t_rnxNavFile();
-  t_irc getNextEph(t_eph* eph);
+  t_eph* getNextEph();
   float version() const {return _header.version();}
   bool  glonass() const {return _header.glonass();}
