From 414111a8d8020459f65506d4c229d4071ad9d51a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 19 Jun 2011 21:19:27 +0200 Subject: [PATCH] isinf: Coding style. * lib/isinf.c: Use GNU coding style. --- ChangeLog | 5 +++++ lib/isinf.c | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 31c07f0bc..b0bdd21d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-06-19 Bruno Haible + isinf: Coding style. + * lib/isinf.c: Use GNU coding style. + +2011-06-19 Bruno Haible + linkat test: Avoid test failure on AIX 7.1. * tests/test-linkat.c (main): Allow EINVAL as alternate error value. * tests/test-link.h (test_link): Likewise. diff --git a/lib/isinf.c b/lib/isinf.c index cba9edee8..7ccca7904 100644 --- a/lib/isinf.c +++ b/lib/isinf.c @@ -21,17 +21,20 @@ #include -int gl_isinff (float x) +int +gl_isinff (float x) { return x < -FLT_MAX || x > FLT_MAX; } -int gl_isinfd (double x) +int +gl_isinfd (double x) { return x < -DBL_MAX || x > DBL_MAX; } -int gl_isinfl (long double x) +int +gl_isinfl (long double x) { return x < -LDBL_MAX || x > LDBL_MAX; } -- 2.11.0