summaryrefslogtreecommitdiffstats
path: root/include/helper.h
diff options
context:
space:
mode:
authorTom Hinton <tom.hinton@cse.org.uk>2015-10-01 11:41:44 +0100
committerTom Hinton <tom.hinton@cse.org.uk>2015-10-01 11:41:44 +0100
commit574bf2da828b4e3ab0ce3ce7fccd58879db60430 (patch)
tree0f8d601a5780a0076c460f04c5ad268abc8a16d8 /include/helper.h
parent0e60aaf23500c45cab17b8f5e11ec234b137645d (diff)
Make dmenu reading very marginally faster
A slight reduction in use of realloc and avoidance of 3 or 4 strlens for a string we know the length of
Diffstat (limited to 'include/helper.h')
-rw-r--r--include/helper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/helper.h b/include/helper.h
index cdd4bc7f..6d6f1826 100644
--- a/include/helper.h
+++ b/include/helper.h
@@ -16,7 +16,7 @@ int helper_parse_setup ( char * string, char ***output, int *length, ... );
/**
* Implementation of fgets with custom separator.
*/
-char* fgets_s ( char* s, int n, FILE *iop, char sep );
+char* fgets_s ( char* s, unsigned int n, FILE *iop, char sep );
/**
* @param token The string for which we want a collation key.