[glib] GOption: don't use "rand" in code example
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GOption: don't use "rand" in code example
- Date: Sat, 18 Jan 2014 01:17:49 +0000 (UTC)
commit 9592d40613ad02085fb7643cac96df655081dd3b
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Jan 16 21:47:09 2014 -0500
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 files 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 }
* };
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]