threads / patch / 23865

patchComplete prototype of git_config_from_parameters()

Subject: [PATCH next] Complete prototype of git_config_from_parameters()

## tl;dr

2 messages between May 21, 2010 and May 21, 2010. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Thomas Rast· May 21, 2010, 10:07 UTC · lore

Add the missing argument list. (Its lack triggered a compiler warning for me.)

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
---
On top of 8b1fa778, which is only in 'next' so far.
 cache.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to cache.h +1 −1
diff --git a/cache.h b/cache.h
index 51d9678..c966023 100644
--- a/cache.h
+++ b/cache.h
@@ -940,7 +940,7 @@ typedef int (*config_fn_t)(const char *, const char *, void *);
 extern int git_default_config(const char *, const char *, void *);
 extern int git_config_from_file(config_fn_t fn, const char *, void *);
 extern int git_config_parse_parameter(const char *text);
-extern int git_config_from_parameters();
+extern int git_config_from_parameters(config_fn_t fn, void *data);
 extern int git_config(config_fn_t fn, void *);
 extern int git_parse_ulong(const char *, unsigned long *);
 extern int git_config_int(const char *, const char *);
-- 
1.7.1.312.g24d42.dirty
Alex Riesen· May 21, 2010, 10:18 UTC · re: Thomas Rast · lore

Re: [PATCH next] Complete prototype of git_config_from_parameters()

On Fri, May 21, 2010 at 12:07, Thomas Rast <trast@student.ethz.ch> wrote:
> Add the missing argument list.  (Its lack triggered a compiler warning
> for me.)
Oh, thanks! I just forgot about the prototype from the previous iterations.

← back to recent threads