Module Name: src
Committed By: christos
Date: Sat Jan 16 21:31:38 UTC 2016
Modified Files:
src/lib/libm/noieee_src: n_fmod.c
Log Message:
modernize.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/noieee_src/n_fmod.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libm/noieee_src/n_fmod.c
diff -u src/lib/libm/noieee_src/n_fmod.c:1.9 src/lib/libm/noieee_src/n_fmod.c:1.10
--- src/lib/libm/noieee_src/n_fmod.c:1.9 Sat Jan 16 16:29:33 2016
+++ src/lib/libm/noieee_src/n_fmod.c Sat Jan 16 16:31:38 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: n_fmod.c,v 1.9 2016/01/16 21:29:33 christos Exp $ */
+/* $NetBSD: n_fmod.c,v 1.10 2016/01/16 21:31:38 christos Exp $ */
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
@@ -109,8 +109,9 @@ fmodf(float x, float y)
}
#ifdef TEST_FMOD
-extern long random();
-extern double fmod();
+#include <math.h>
+#include <stdio.h>
+#include <stdlib.h>
#define NTEST 10000
#define NCASES 3