From 9592d40613ad02085fb7643cac96df655081dd3b Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Thu, 16 Jan 2014 21:47:09 -0500 Subject: [PATCH] GOption: don't use "rand" in code example rand() is a function defined in the libc, so our code example gives warnings if you try to compile it. Fix that. https://bugzilla.gnome.org/show_bug.cgi?id=722025 --- glib/goption.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/goption.c b/glib/goption.c index 9a20040..0001e70 100644 --- a/glib/goption.c +++ b/glib/goption.c @@ -99,7 +99,7 @@ * static gint max_size = 8; * static gboolean verbose = FALSE; * static gboolean beep = FALSE; - * static gboolean rand = FALSE; + * static gboolean randomize = FALSE; * * static GOptionEntry entries[] = * { @@ -107,7 +107,7 @@ * { "max-size", 'm', 0, G_OPTION_ARG_INT, &max_size, "Test up to 2^M items", "M" }, * { "verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose, "Be verbose", NULL }, * { "beep", 'b', 0, G_OPTION_ARG_NONE, &beep, "Beep when done", NULL }, - * { "rand", 0, 0, G_OPTION_ARG_NONE, &rand, "Randomize the data", NULL }, + * { "rand", 0, 0, G_OPTION_ARG_NONE, &randomize, "Randomize the data", NULL }, * { NULL } * }; * -- 2.7.4