summaryrefslogtreecommitdiff
path: root/run-command.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-05-13 23:50:32 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-05-13 23:50:32 +0900
commit4aeeef377347934d6f459e27f7d793de4ce384bb (patch)
treea8031c9623eac896bf474ba2158e39afc6abb5b3 /run-command.h
parentMerge branch 'ew/repack-with-bitmaps-by-default' (diff)
parent*.[ch]: manually align parameter lists (diff)
downloadtgif-4aeeef377347934d6f459e27f7d793de4ce384bb.tar.xz
Merge branch 'dl/no-extern-in-func-decl'
Mechanically and systematically drop "extern" from function declarlation. * dl/no-extern-in-func-decl: *.[ch]: manually align parameter lists *.[ch]: remove extern from function declarations using sed *.[ch]: remove extern from function declarations using spatch
Diffstat (limited to 'run-command.h')
-rw-r--r--run-command.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/run-command.h b/run-command.h
index a6950691c0..f769e03f01 100644
--- a/run-command.h
+++ b/run-command.h
@@ -55,7 +55,7 @@ struct child_process {
#define CHILD_PROCESS_INIT { NULL, ARGV_ARRAY_INIT, ARGV_ARRAY_INIT }
void child_process_init(struct child_process *);
void child_process_clear(struct child_process *);
-extern int is_executable(const char *name);
+int is_executable(const char *name);
int start_command(struct child_process *);
int finish_command(struct child_process *);
@@ -67,10 +67,10 @@ int run_command(struct child_process *);
* or disabled. Note that this points to static storage that will be
* overwritten by further calls to find_hook and run_hook_*.
*/
-extern const char *find_hook(const char *name);
+const char *find_hook(const char *name);
LAST_ARG_MUST_BE_NULL
-extern int run_hook_le(const char *const *env, const char *name, ...);
-extern int run_hook_ve(const char *const *env, const char *name, va_list args);
+int run_hook_le(const char *const *env, const char *name, ...);
+int run_hook_ve(const char *const *env, const char *name, va_list args);
#define RUN_COMMAND_NO_STDIN 1
#define RUN_GIT_CMD 2 /*If this is to be git sub-command */