id_t is 64-bits on FreeBSD so use strtoll() there.

Fixes the strtoid regress.
This commit is contained in:
Todd C. Miller
2016-11-30 07:32:59 -07:00
parent 70d3e0e987
commit 334350af45
8 changed files with 333 additions and 1 deletions

View File

@@ -452,6 +452,19 @@ sudo_debug_exit_long_v1(const char *func, const char *file, int line,
"<- %s @ %s:%d := %ld", func, file, line, ret);
}
void
sudo_debug_exit_id_t_v1(const char *func, const char *file, int line,
int subsys, id_t ret)
{
#if SIZEOF_ID_T == 8
sudo_debug_printf2(NULL, NULL, 0, subsys | SUDO_DEBUG_TRACE,
"<- %s @ %s:%d := %lld", func, file, line, (long long)ret);
#else
sudo_debug_printf2(NULL, NULL, 0, subsys | SUDO_DEBUG_TRACE,
"<- %s @ %s:%d := %d", func, file, line, (int)ret);
#endif
}
void
sudo_debug_exit_size_t_v1(const char *func, const char *file, int line,
int subsys, size_t ret)