summaryrefslogtreecommitdiff
path: root/src/tet3/dtet2lib/unmaperr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tet3/dtet2lib/unmaperr.c')
-rw-r--r--src/tet3/dtet2lib/unmaperr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tet3/dtet2lib/unmaperr.c b/src/tet3/dtet2lib/unmaperr.c
index 15e28d07..dd63b6ff 100644
--- a/src/tet3/dtet2lib/unmaperr.c
+++ b/src/tet3/dtet2lib/unmaperr.c
@@ -56,8 +56,8 @@ register int repcode;
{
register struct errmap *ep, *ee;
- for (ep = tet_errmap, ee = &tet_errmap[tet_Nerrmap]; ep < ee; ep++)
- if (repcode == ep->em_repcode)
+ for (ep = tet_errmap, ee = &tet_errmap[tet_Nerrmap]; ep < ee; ep++) {
+ if (repcode == ep->em_repcode) {
if (ep->em_errno >= 0)
return(ep->em_errno);
else {
@@ -65,7 +65,8 @@ register int repcode;
"has no equivalent local errno value");
break;
}
+ }
+ }
return(0);
}
-