summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/getproto.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/getproto.c')
-rw-r--r--otherlibs/unix/getproto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/unix/getproto.c b/otherlibs/unix/getproto.c
index 56ea69913..aed732de0 100644
--- a/otherlibs/unix/getproto.c
+++ b/otherlibs/unix/getproto.c
@@ -29,7 +29,7 @@ value unix_getprotobyname(name) /* ML */
{
struct protoent * entry;
entry = getprotobyname(String_val(name));
- if (entry == (struct protoent *) NULL) mlraise(Atom(NOT_FOUND_EXN));
+ if (entry == (struct protoent *) NULL) raise_not_found();
return alloc_proto_entry(entry);
}
@@ -38,7 +38,7 @@ value unix_getprotobynumber(proto) /* ML */
{
struct protoent * entry;
entry = getprotobynumber(Int_val(proto));
- if (entry == (struct protoent *) NULL) mlraise(Atom(NOT_FOUND_EXN));
+ if (entry == (struct protoent *) NULL) raise_not_found();
return alloc_proto_entry(entry);
}