numsignal = strtol(s,&endp,10);
if(*endp || endp==s)
free(p);
- return NULL; /* not valid */
+ return NULL; /* not valid */
}
if (numsignal){
for (i = 0; i < number_of_signals; i++){
/////////////////////////////////////////////////////////////////////////
static void statm2proc(const char* s, proc_t *restrict P) {
- int num;
- num = sscanf(s, "%lu %lu %lu %lu %lu %lu %lu",
+ sscanf(s, "%lu %lu %lu %lu %lu %lu %lu",
&P->size, &P->resident, &P->share,
&P->trs, &P->lrs, &P->drs, &P->dt);
-/* fprintf(stderr, "statm2proc converted %d fields.\n",num); */
}
static int file2str(const char *directory, const char *what, struct utlbuf_s *ub) {
} // end: stat_cleanup_stacks_all
-static inline int stat_derive_unique (
+static inline void stat_derive_unique (
struct hist_tic *this)
{
/* note: we exclude guest tics from xtot since ...
if((tmp>='a') && (tmp<='z')) return ARG_GNU;
if((tmp>='A') && (tmp<='Z')) return ARG_GNU;
if(tmp=='\0') return ARG_END;
- return ARG_FAIL;
+ return ARG_FAIL;
}
/* First assume sysv, because that is the POSIX and Unix98 standard. */
tot_MIN, tot_AVG, tot_MAX
};
struct slabinfo_stack *p;
- struct slabinfo_result *stats;
if (!(p = procps_slabinfo_select(Slab_info, items, MAXTBL(items))))
xerrx(EXIT_FAILURE, _("Error getting slab summary results"));
if (buf[0] == '\0')
set_ansi_attribute(0);
- for (endptr = numstart = buf; *endptr != '\0'; numstart = endptr + 1) {
- if (!set_ansi_attribute(strtol(numstart, &endptr, 10)))
+ for (endptr = numstart = buf; *endptr != '\0'; numstart = endptr + 1) {
+ if (!set_ansi_attribute(strtol(numstart, &endptr, 10)))
break;
if (numstart == endptr)
set_ansi_attribute(0); /* [m treated as [0m */