summaryrefslogtreecommitdiffstats
path: root/byterun/signals.c
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2003-12-29 22:15:02 +0000
committerDamien Doligez <damien.doligez-inria.fr>2003-12-29 22:15:02 +0000
commit31943bac1db3351118c7f911db99bd567f02a883 (patch)
tree053244070a0a7f612d637a0547f0d851a2dd024a /byterun/signals.c
parentdbf40e0b61af6f34d4a2736be1f0562ee5e8a52f (diff)
depollution suite (PR#1914 et PR#1956); byterun/weak.c: PR#1929 suite
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6041 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/signals.c')
-rw-r--r--byterun/signals.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/byterun/signals.c b/byterun/signals.c
index cbff73755..ce8f2ae72 100644
--- a/byterun/signals.c
+++ b/byterun/signals.c
@@ -277,7 +277,7 @@ CAMLprim value install_signal_handler(value signal_number, value action)
if (oldact == SIG_ERR) caml_sys_error(NO_ARG);
#endif
if (oldact == handle_signal) {
- res = alloc_small (1, 0); /* Signal_handle */
+ res = caml_alloc_small (1, 0); /* Signal_handle */
Field(res, 0) = Field(signal_handlers, sig);
}
else if (oldact == SIG_IGN)
@@ -286,7 +286,7 @@ CAMLprim value install_signal_handler(value signal_number, value action)
res = Val_int(0); /* Signal_default */
if (Is_block(action)) {
if (signal_handlers == 0) {
- signal_handlers = alloc(NSIG, 0);
+ signal_handlers = caml_alloc(NSIG, 0);
register_global_root(&signal_handlers);
}
modify(&Field(signal_handlers, sig), Field(action, 0));