git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
05be212
)
uae-dont-translate-zero-20030424
author
Nickolai Zeldovich
<kolya@mit.edu>
Thu, 24 Apr 2003 20:21:31 +0000 (20:21 +0000)
committer
Nickolai 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
patch
|
blob
|
history
diff --git
a/src/viced/afsfileprocs.c
b/src/viced/afsfileprocs.c
index
586c64e
..
e66c8d4
100644
(file)
--- a/
src/viced/afsfileprocs.c
+++ b/
src/viced/afsfileprocs.c
@@
-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;