X-Git-Url: http://git.cascardo.info/?p=cascardo%2Ff2fchat.git;a=blobdiff_plain;f=f2fchat.c;fp=f2fchat.c;h=5462e6ad00d23e76aa2330576f565da20bbf85ba;hp=634133c0cb3e17f5f5f043ebaba5214bb4e1cf76;hb=123b3a7a3989a0f040da5cc16f997ff5961fe593;hpb=9bfbad1591814150338bb62050d28ad0e4033552 diff --git a/f2fchat.c b/f2fchat.c index 634133c..5462e6a 100644 --- a/f2fchat.c +++ b/f2fchat.c @@ -18,6 +18,7 @@ #include "friend.h" #include +#include static gboolean quit(gpointer data) { @@ -31,7 +32,10 @@ int main(int argc, char **argv) struct cache *cache; GMainLoop *loop; g_type_init(); - sock_init(); + if (sock_init()) { + fprintf(stderr, "Error creating socket.\n"); + return 1; + } create_cache(&cache); load_cache(cache, "friends.cache"); loop = g_main_loop_new(g_main_context_default(), TRUE);