X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest_url_normalize.c;h=9736c66b0eab113a1d3f2042be11946a305bbfdd;hb=90ec04c6efb1f0b9e3887a86b1da9e7d0d33f16f;hp=1a762092e7d2f2165b79f70a7ab29871c3e28fec;hpb=a889b0b1a8233103aac529105dc0db9c5864a592;p=psensor.git diff --git a/tests/test_url_normalize.c b/tests/test_url_normalize.c index 1a76209..9736c66 100644 --- a/tests/test_url_normalize.c +++ b/tests/test_url_normalize.c @@ -14,10 +14,9 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - *02110-1301 USA + * 02110-1301 USA */ - #include #include #include @@ -25,8 +24,7 @@ #include "../src/lib/url.h" - -int test_url_normalize(const char *url, const char *ref_url) +static int test_url_normalize(const char *url, const char *ref_url) { int ret; char *tmp = url_normalize(url); @@ -48,8 +46,7 @@ int test_url_normalize(const char *url, const char *ref_url) return ret; } - -int tests_url_normalize() +static int tests_url_normalize(void) { int failures; @@ -72,7 +69,7 @@ int main(int argc, char **argv) failures += tests_url_normalize(); - if (failures) + if (failures) exit(EXIT_FAILURE); else exit(EXIT_SUCCESS);