int settimeofday(const struct timeval *tp, const void *tzp)
{
+ /* Use intermediate variable because stime param is not const */
+ time_t sec = tp->tv_sec;
+
/* Ignore time zones */
- return stime(&tp->tv_sec);
+ return stime(&sec);
}
PRIVATE char cpath[CPROF_CPATH_MAX_LEN]; /* current call path string */
PRIVATE int cpath_len; /* current call path len */
PRIVATE struct cprof_tbl_s *cprof_slot; /* slot of current function */
-PRIVATE struct stack_s { /* stack entry */
+struct stack_s { /* stack entry */
int cpath_len; /* call path len */
struct cprof_tbl_s *slot; /* table slot */
u64_t start_1; /* count @ begin of procentry */