diff options
author | Morten Welinder <terra@gnome.org> | 2004-07-24 02:25:48 +0000 |
---|---|---|
committer | Morten Welinder <mortenw@src.gnome.org> | 2004-07-24 02:25:48 +0000 |
commit | 4b9a1f1f9d9bf8cff161f9a57b78a9f5fe950b94 (patch) | |
tree | 40eda675aed43004203c981b4977827fd5058a8b /examples | |
parent | 476dc1d5646b90ed3b9fbe28109da0ca9dd0b3bf (diff) | |
download | pango-4b9a1f1f9d9bf8cff161f9a57b78a9f5fe950b94.tar.gz |
Fix C99ism. I am clearly the last man stuck in the dark age of C.
2004-07-23 Morten Welinder <terra@gnome.org>
* examples/renderdemo.c (parse_ellipsis): Fix C99ism. I am clearly
the last man stuck in the dark age of C.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/renderdemo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/renderdemo.c b/examples/renderdemo.c index 78aa4037..b6940380 100644 --- a/examples/renderdemo.c +++ b/examples/renderdemo.c @@ -306,11 +306,12 @@ parse_ellipsis (ArgContext *arg_context, gpointer data) { static GEnumClass *class = NULL; + GEnumValue *value; if (!class) class = g_type_class_ref (PANGO_TYPE_ELLIPSIZE_MODE); - GEnumValue *value = g_enum_get_value_by_nick (class, arg); + value = g_enum_get_value_by_nick (class, arg); if (!value) fail ("--ellipsize option must be one of none/start/middle/end"); |