summaryrefslogtreecommitdiff
path: root/line-range.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-06-30 09:20:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-03 17:42:55 (GMT)
commit5146f1f842f735a6b4f833a2476facc7ccf54268 (patch)
treec3b91ecece98ed071cfccb0b090b0c738fd83011 /line-range.h
parentf758a7f8ac443d451bd878f8c0e51e2bfd757d13 (diff)
downloadgit-5146f1f842f735a6b4f833a2476facc7ccf54268.zip
git-5146f1f842f735a6b4f833a2476facc7ccf54268.tar.gz
git-5146f1f842f735a6b4f833a2476facc7ccf54268.tar.bz2
line-range.h: drop extern from function declaration
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'line-range.h')
-rw-r--r--line-range.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/line-range.h b/line-range.h
index 83ba3c2..d3c54e4 100644
--- a/line-range.h
+++ b/line-range.h
@@ -19,11 +19,11 @@
typedef const char *(*nth_line_fn_t)(void *data, long lno);
-extern int parse_range_arg(const char *arg,
- nth_line_fn_t nth_line_cb,
- void *cb_data, long lines, long anchor,
- long *begin, long *end,
- const char *path);
+int parse_range_arg(const char *arg,
+ nth_line_fn_t nth_line_cb,
+ void *cb_data, long lines, long anchor,
+ long *begin, long *end,
+ const char *path);
/*
* Scan past a range argument that could be parsed by
@@ -34,6 +34,6 @@ extern int parse_range_arg(const char *arg,
* NULL in case the argument is obviously malformed.
*/
-extern const char *skip_range_arg(const char *arg);
+const char *skip_range_arg(const char *arg);
#endif /* LINE_RANGE_H */