summaryrefslogtreecommitdiff
path: root/libyelp/yelp-man-parser.c
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@openbsd.org>2011-06-15 00:08:27 +0200
committerShaun McCance <shaunm@gnome.org>2011-06-14 19:34:06 -0400
commite6e1bfec226fd91decd4ef972637589f38dc5e4d (patch)
treeeedc222a28ae7e5d9dbc96f3ba992bb84bf8256d /libyelp/yelp-man-parser.c
parente38d70597151ab16cd6c0f5efeed77519c9fb7a1 (diff)
downloadyelp-e6e1bfec226fd91decd4ef972637589f38dc5e4d.tar.gz
Don't use stdout as a variable name.
stdout is defined in stdio.h which breaks the compilation under (at least) OpenBSD and it is usually considered bad pratice to use such generic variable names.
Diffstat (limited to 'libyelp/yelp-man-parser.c')
-rw-r--r--libyelp/yelp-man-parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libyelp/yelp-man-parser.c b/libyelp/yelp-man-parser.c
index 4001d38c..3c756424 100644
--- a/libyelp/yelp-man-parser.c
+++ b/libyelp/yelp-man-parser.c
@@ -369,7 +369,7 @@ yelp_man_parser_new (void)
static GInputStream*
get_troff (gchar *path, GError **error)
{
- gint stdout;
+ gint ystdout;
GError *err = NULL;
gchar *argv[] = { "man", "-Z", "-Tutf8", "-EUTF-8", NULL, NULL };
@@ -377,7 +377,7 @@ get_troff (gchar *path, GError **error)
if (!g_spawn_async_with_pipes (NULL, argv, NULL,
G_SPAWN_SEARCH_PATH, NULL, NULL,
- NULL, NULL, &stdout, NULL, &err)) {
+ NULL, NULL, &ystdout, NULL, &err)) {
/* We failed to run the man program. Return a "Huh?" error. */
*error = g_error_new (YELP_ERROR, YELP_ERROR_UNKNOWN,
err->message);
@@ -385,7 +385,7 @@ get_troff (gchar *path, GError **error)
return NULL;
}
- return (GInputStream*) g_unix_input_stream_new (stdout, TRUE);
+ return (GInputStream*) g_unix_input_stream_new (ystdout, TRUE);
}
xmlDocPtr