diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2015-03-17 17:00:08 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-03-19 11:02:59 -0700 |
commit | 893c679365f745526657eda789bff7a3da4639d5 (patch) | |
tree | 956aef228dba8d7d9a43e8dd0dc40f70d133f73b | |
parent | 595a4a87979af31e1673199ebaddc6a66ca171a6 (diff) | |
download | git-893c679365f745526657eda789bff7a3da4639d5.tar.gz |
strtoul_ui(), strtol_i(): remove functions
Their callers have been changed to use the numparse module.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | git-compat-util.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index a3095be962..cbe7f166f5 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -751,32 +751,6 @@ static inline int sane_iscase(int x, int is_lower) return (x & 0x20) == 0; } -static inline int strtoul_ui(char const *s, int base, unsigned int *result) -{ - unsigned long ul; - char *p; - - errno = 0; - ul = strtoul(s, &p, base); - if (errno || *p || p == s || (unsigned int) ul != ul) - return -1; - *result = ul; - return 0; -} - -static inline int strtol_i(char const *s, int base, int *result) -{ - long ul; - char *p; - - errno = 0; - ul = strtol(s, &p, base); - if (errno || *p || p == s || (int) ul != ul) - return -1; - *result = ul; - return 0; -} - #ifdef INTERNAL_QSORT void git_qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *)); |