]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
uae-dont-translate-zero-20030424
authorNickolai Zeldovich <kolya@mit.edu>
Thu, 24 Apr 2003 20:21:31 +0000 (20:21 +0000)
committerNickolai Zeldovich <kolya@mit.edu>
Thu, 24 Apr 2003 20:21:31 +0000 (20:21 +0000)
Leave a zero return value as zero, rather than translating to UAEMEDIUMTYPE.

src/viced/afsfileprocs.c

index 586c64ea33b4e1eb093932c2f46a9ac4efab6720..e66c8d46ca0fa819fbf7623fb94d13b3c77f7260 100644 (file)
@@ -7150,6 +7150,7 @@ void init_sys_error_to_et(void) {
 }
 
 afs_int32 sys_error_to_et(afs_int32 in) {
+    if (in == 0) return 0;
     if (in < 0 || in > 511) return in;
     if (sys2et[in] != 0) return sys2et[in];
     return in;