summaryrefslogtreecommitdiff
path: root/include/git2/sys/config.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-04-30 11:16:31 -0700
committerRussell Belfer <rb@github.com>2014-04-30 11:16:31 -0700
commit8655a8985bcf2891390d464401b198d629edbfc3 (patch)
tree342130ee269448aa7b31c37f56df9d2b02f63abb /include/git2/sys/config.h
parenta4f9e1f0d41a9c78b304d3c1b8ef5270c30b208f (diff)
downloadlibgit2-rb/diff-update-index-stat-cache.tar.gz
Fix remaining init_options inconsistenciesrb/diff-update-index-stat-cache
There were a couple of "init_opts()" functions a few more cases of structure initialization that I somehow missed.
Diffstat (limited to 'include/git2/sys/config.h')
-rw-r--r--include/git2/sys/config.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/git2/sys/config.h b/include/git2/sys/config.h
index 3df2ba327..46bb65293 100644
--- a/include/git2/sys/config.h
+++ b/include/git2/sys/config.h
@@ -73,14 +73,13 @@ struct git_config_backend {
* Initializes a `git_config_backend` with default values. Equivalent to
* creating an instance with GIT_CONFIG_BACKEND_INIT.
*
- * @param opts the `git_config_backend` instance to initialize.
- * @param version the version of the struct; you should pass
- * `GIT_CONFIG_BACKEND_VERSION` here.
+ * @param opts the `git_config_backend` struct to initialize.
+ * @param version Version of struct; pass `GIT_CONFIG_BACKEND_VERSION`
* @return Zero on success; -1 on failure.
*/
GIT_EXTERN(int) git_config_init_backend(
- git_config_backend* backend,
- int version);
+ git_config_backend *backend,
+ unsigned int version);
/**
* Add a generic config file instance to an existing config