]> git.draconx.ca Git - liblbx.git/commitdiff
liblbx: Always return a value in file_seek.
authorNick Bowler <nbowler@draconx.ca>
Tue, 28 Jan 2014 02:41:55 +0000 (21:41 -0500)
committerNick Bowler <nbowler@draconx.ca>
Tue, 28 Jan 2014 02:41:55 +0000 (21:41 -0500)
This function did not return any value on success so it was only by
chance that it seemed to work.

src/fops.c

index e546b1097692f3e0f5b07c9403828772de62f53b..26b392f2146667b0550bc1555f047966d7249808 100644 (file)
@@ -39,6 +39,8 @@ static int file_seek(void *handle, long offset, int whence)
                lbx_error_raise(-errno);
                return -1;
        }
+
+       return 0;
 }
 
 static long file_tell(void *handle)