fix warnings from gcc compilation with my mad CFLAGS

This commit is contained in:
Benjamin Otte
2009-06-29 18:24:08 +02:00
parent 4b8ad50fc4
commit afd63c3281
12 changed files with 119 additions and 106 deletions

View File

@@ -37,7 +37,7 @@ static GCancellable *cancellable;
static GMainLoop *loop;
static int nlookups = 0;
static void
static void G_GNUC_NORETURN
usage (void)
{
fprintf (stderr, "Usage: resolver [-t] [-s] [hostname | IP | service/protocol/domain ] ...\n");
@@ -417,9 +417,9 @@ interrupted (int sig)
}
static gboolean
async_cancel (GIOChannel *source, GIOCondition cond, gpointer cancellable)
async_cancel (GIOChannel *source, GIOCondition cond, gpointer cancel)
{
g_cancellable_cancel (cancellable);
g_cancellable_cancel (cancel);
return FALSE;
}
#endif