* Display current activity header line.
*
* IN:
- * @timestamp Timestamp for previous stat sample.
+ * @p_timestamp Timestamp for previous stat sample.
* @a Activity structure.
* @pos Index in @.hdr_line string, 0 being the first one (header
* are delimited by the '|' character).
* @vwidth Column width for stats values.
***************************************************************************
*/
-void print_hdr_line(char *timestamp, struct activity *a, int pos, int iwidth, int vwidth)
+void print_hdr_line(char *p_timestamp, struct activity *a, int pos, int iwidth, int vwidth)
{
char hline[HEADER_LINE_LEN] = "";
char *hl, *tk, *it = NULL;
/* Bad @pos arg given to function */
return;
- printf("\n%-11s", timestamp);
+ printf("\n%-11s", p_timestamp);
if (strchr(hl, '&')) {
j = strcspn(hl, "&");
* Look for output format in array.
*
* IN:
- * @fmt Array of output formats.
* @format Output format to look for.
*
* RETURNS:
* Position of output format in array.
***************************************************************************
*/
-int get_format_position(struct report_format *fmt[], unsigned int format)
+int get_format_position(unsigned int format)
{
int i;
}
/* Get format position in array */
- f_position = get_format_position(fmt, format);
+ f_position = get_format_position(format);
/* Check options consistency wrt output format */
if (!ACCEPT_HEADER_ONLY(fmt[f_position]->options)) {