afs: afs_osi_Read/Write returns negative on error
[openafs.git] / src / afs / HPUX / osi_file.c
index 1bba21f..2afe1da 100644 (file)
@@ -150,7 +150,7 @@ afs_osi_Read(struct osi_file *afile, int offset, void *aptr,
        if (!afs_shuttingdown)
            osi_Panic("osi_Read called with null param");
        else
-           return EIO;
+           return -EIO;
     }
 
     if (offset != -1)