summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-05-05 15:16:15 +0200
committerCarlos Martín Nieto <cmn@elego.de>2011-05-05 16:18:11 +0200
commit094aaaaee92f4fc98a6c3c3af36183cb217948a8 (patch)
tree5935d4f3d09226c3d015d8508f237662af2afba0 /src/util.h
parent0130d8184e7a0087a5b95700e9a19d60f35b869f (diff)
downloadlibgit2-094aaaaee92f4fc98a6c3c3af36183cb217948a8.tar.gz
config: store the section name separately
The section and variable names use different rules, so store them as two different variables internally. This will simplify the configuration-writing code as well later on, but even with parsing, the code is simpler. Take this opportunity to add a variable to the list directly when parsing instead of passing through config_set.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 3c606493f..3dcdc3674 100644
--- a/src/util.h
+++ b/src/util.h
@@ -16,6 +16,7 @@
#define git__calloc calloc
#define git__realloc realloc
#define git__strdup strdup
+#define git__strndup strndup
extern int git__fmt(char *, size_t, const char *, ...)
GIT_FORMAT_PRINTF(3, 4);