Make the compiler stricter and tidy up code to make the subsequent errors and warnings go away

This commit is contained in:
Alex Young
2012-06-11 13:57:03 +01:00
parent 8825f86726
commit 25fc0969cf
19 changed files with 132 additions and 139 deletions

View File

@@ -5,6 +5,8 @@
#include "client.h"
#include <unistd.h>
#define FAKE_SERVER ((struct server *)23)
#define FAKE_SOCKET (42)
@@ -46,6 +48,8 @@ START_TEST( test_opens_stop_signal )
END_TEST
int fd_is_closed(int);
START_TEST( test_closes_stop_signal )
{
struct client *c = client_create( FAKE_SERVER, FAKE_SOCKET );
@@ -78,7 +82,7 @@ START_TEST( test_read_request_quits_on_stop_signal )
END_TEST
Suite *client_suite()
Suite *client_suite(void)
{
Suite *s = suite_create("client");