diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-07-29 08:22:52 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-07-29 08:22:52 -0400 |
commit | dbf5033f947e51683400d6c18ecb6043aa1943bd (patch) | |
tree | 201fc77cb9e8c707e699b6cd76fbc634bf022bf6 | |
parent | b7e69226050965032b056b49ca4d5eef2b959af4 (diff) | |
download | gtk+-dbf5033f947e51683400d6c18ecb6043aa1943bd.tar.gz |
composetable: Reduce the scope of a variable
'prefix' is not a good name for a file-scope variable,
move it into the sole function using it.
-rw-r--r-- | gtk/gtkcomposetable.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gtk/gtkcomposetable.c b/gtk/gtkcomposetable.c index c95b153e6f..40dd8b6e41 100644 --- a/gtk/gtkcomposetable.c +++ b/gtk/gtkcomposetable.c @@ -1069,22 +1069,22 @@ gtk_compose_table_parse (const char *compose_file, return compose_table; } -static const char *prefix = - "# GTK has rewritten this file to add the line:\n" - "\n" - "include \"%L\"\n" - "\n" - "# This is necessary to add your own Compose sequences\n" - "# in addition to the builtin sequences of GTK. If this\n" - "# is not what you want, just remove that line.\n" - "#\n" - "# A backup of the previous file contents has been made.\n" - "\n" - "\n"; - static gboolean rewrite_compose_file (const char *compose_file) { + static const char *prefix = + "# GTK has rewritten this file to add the line:\n" + "\n" + "include \"%L\"\n" + "\n" + "# This is necessary to add your own Compose sequences\n" + "# in addition to the builtin sequences of GTK. If this\n" + "# is not what you want, just remove that line.\n" + "#\n" + "# A backup of the previous file contents has been made.\n" + "\n" + "\n"; + char *path = NULL; char *content = NULL; gsize content_len; |