about summary refs log tree commit diff stats
path: root/src/tools/parser.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-10-25 22:47:42 +0000
committerJames Booth <boothj5@gmail.com>2015-10-25 22:47:42 +0000
commit00170984001803cd1306ed000fcbbb0a4297f2be (patch)
tree0a69e05e40350347ee235ddd9d695b580fd78c19 /src/tools/parser.c
parent39d183fe236b593fe4eb8c83a910413a4c9d19da (diff)
downloadprofani-tty-00170984001803cd1306ed000fcbbb0a4297f2be.tar.gz
Applied coding style to src/tools/
Diffstat (limited to 'src/tools/parser.c')
-rw-r--r--src/tools/parser.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tools/parser.c b/src/tools/parser.c
index d3a23264..b0fc9234 100644
--- a/src/tools/parser.c
+++ b/src/tools/parser.c
@@ -61,8 +61,8 @@
  * { "arg1", "arg2", NULL }
  *
  */
-gchar **
-parse_args(const char * const inp, int min, int max, gboolean *result)
+gchar**
+parse_args(const char *const inp, int min, int max, gboolean *result)
 {
     if (inp == NULL) {
         *result = FALSE;
@@ -195,8 +195,8 @@ parse_args(const char * const inp, int min, int max, gboolean *result)
  * { "arg1", "arg2", "some free text", NULL }
  *
  */
-gchar **
-parse_args_with_freetext(const char * const inp, int min, int max, gboolean *result)
+gchar**
+parse_args_with_freetext(const char *const inp, int min, int max, gboolean *result)
 {
     if (inp == NULL) {
         *result = FALSE;
@@ -316,7 +316,7 @@ parse_args_with_freetext(const char * const inp, int min, int max, gboolean *res
 }
 
 int
-count_tokens(const char * const string)
+count_tokens(const char *const string)
 {
     int length = g_utf8_strlen(string, -1);
     gboolean in_quotes = FALSE;
@@ -346,8 +346,8 @@ count_tokens(const char * const string)
     return num_tokens;
 }
 
-char *
-get_start(const char * const string, int tokens)
+char*
+get_start(const char *const string, int tokens)
 {
     GString *result = g_string_new("");
     int length = g_utf8_strlen(string, -1);
@@ -388,7 +388,7 @@ get_start(const char * const string, int tokens)
     return result_str;
 }
 
-GHashTable *
+GHashTable*
 parse_options(gchar **args, gchar **opt_keys, gboolean *res)
 {
     GList *keys = NULL;