Commit 54ccc71786cf5a0fee69e7ec173e62abd4a12af5

Brandon Casey 2011-11-05T18:01:32

examples/general.c: update for recent API renaming of git_config_get_int git_config_get_int --> git_config_get_int32

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/examples/general.c b/examples/general.c
index 9bfbc40..8b58fa6 100644
--- a/examples/general.c
+++ b/examples/general.c
@@ -430,14 +430,14 @@ int main (int argc, char** argv)
   printf("\n*Config Listing*\n");
 
   const char *email;
-  int j;
+  int32_t j;
 
   git_config *cfg;
 
   // Open a config object so we can read global values from it.
   git_config_open_ondisk(&cfg, "~/.gitconfig");
 
-  git_config_get_int(cfg, "help.autocorrect", &j);
+  git_config_get_int32(cfg, "help.autocorrect", &j);
   printf("Autocorrect: %d\n", j);
 
   git_config_get_string(cfg, "user.email", &email);