aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src/timer.c')
-rw-r--r--lib-src/timer.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib-src/timer.c b/lib-src/timer.c
index acb84ea5583..1fd7836802f 100644
--- a/lib-src/timer.c
+++ b/lib-src/timer.c
@@ -349,4 +349,21 @@ strerror (errnum)
349 349
350#endif /* ! HAVE_STRERROR */ 350#endif /* ! HAVE_STRERROR */
351 351
352long *
353xmalloc (size)
354 int size;
355{
356 register long *val;
357
358 val = (long *) malloc (size);
359
360 if (!val && size)
361 {
362 fprintf (stderr, "timer: virtual memory exceeded\n");
363 exit (1);
364 }
365
366 return val;
367}
368
352/* timer.c ends here */ 369/* timer.c ends here */