summaryrefslogtreecommitdiffstats
path: root/main/glib/ldiv.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/glib/ldiv.c')
-rw-r--r--main/glib/ldiv.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/main/glib/ldiv.c b/main/glib/ldiv.c
index 0ec98e6..ea80a06 100644
--- a/main/glib/ldiv.c
+++ b/main/glib/ldiv.c
@@ -1,6 +1,6 @@
/*
* Copyright (c) 1990, 1993
- * The Regents of the University of California. All rights reserved.
+ * The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Chris Torek.
@@ -36,21 +36,21 @@ static char sccsid[] = "@(#)ldiv.c 8.1 (Berkeley) 6/4/93";
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include <stdlib.h> /* ldiv_t */
+#include <stdlib.h> /* ldiv_t */
ldiv_t
ldiv(num, denom)
- long num, denom;
+long num, denom;
{
- ldiv_t r;
+ ldiv_t r;
- /* see div.c for comments */
+ /* see div.c for comments */
- r.quot = num / denom;
- r.rem = num % denom;
- if (num >= 0 && r.rem < 0) {
- r.quot++;
- r.rem -= denom;
- }
- return (r);
+ r.quot = num / denom;
+ r.rem = num % denom;
+ if(num >= 0 && r.rem < 0) {
+ r.quot++;
+ r.rem -= denom;
+ }
+ return (r);
}