Revision 69e6544998892a2bd3c785cd238c786da40cf6a3 authored by Junio C Hamano on 17 October 2016, 20:25:21 UTC, committed by Junio C Hamano on 17 October 2016, 20:25:21 UTC
Code cleanup.

* rs/cocci:
  use strbuf_add_unique_abbrev() for adding short hashes, part 3
  remove unnecessary NULL check before free(3)
2 parent s 9424bf2 + a94bb68
Raw File
strtoimax.c
#include "../git-compat-util.h"

intmax_t gitstrtoimax (const char *nptr, char **endptr, int base)
{
#if defined(NO_STRTOULL)
	return strtol(nptr, endptr, base);
#else
	return strtoll(nptr, endptr, base);
#endif
}
back to top