diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-09-30 11:02:53 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-09-30 11:02:53 +0200 |
commit | 2af1c266415bd2030cdfef8ec170a6c135e12b75 (patch) | |
tree | 1eefe585d06cb203ceedaab72eaebadb276705d3 /examples/general.c | |
parent | 34402bcdb94ff412e66220ada0b776c25cd8c30d (diff) | |
download | libgit2-2af1c266415bd2030cdfef8ec170a6c135e12b75.tar.gz |
examples: fix config getter param order
Diffstat (limited to 'examples/general.c')
-rw-r--r-- | examples/general.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/general.c b/examples/general.c index 5269785f2..e001a6889 100644 --- a/examples/general.c +++ b/examples/general.c @@ -437,10 +437,10 @@ int main (int argc, char** argv) // Open a config object so we can read global values from it. git_config_open_ondisk(&cfg, "~/.gitconfig"); - git_config_get_int32(cfg, "help.autocorrect", &j); + git_config_get_int32(&j, cfg, "help.autocorrect"); printf("Autocorrect: %d\n", j); - git_config_get_string(cfg, "user.email", &email); + git_config_get_string(&email, cfg, "user.email"); printf("Email: %s\n", email); // Finally, when you're done with the repository, you can free it as well. |