Fixed coverity issues
Signed-off-by: Bart Poot <bart.poot@adlinktech.com> Processed review comments Signed-off-by: Bart Poot <bart.poot@adlinktech.com>
This commit is contained in:
parent
c84c69e551
commit
9a3a377327
42 changed files with 168 additions and 308 deletions
|
@ -180,7 +180,7 @@ bool record_cputime (struct record_cputime_state *state, const char *prefix, dds
|
|||
}
|
||||
state->tprev = tnow;
|
||||
state->s.some_above = some_above;
|
||||
dds_write (state->wr, &state->s);
|
||||
(void) dds_write (state->wr, &state->s);
|
||||
return print_cputime (&state->s, prefix, false, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -1881,7 +1881,7 @@ int main (int argc, char *argv[])
|
|||
case 'd': {
|
||||
char *col;
|
||||
int pos;
|
||||
ddsrt_strlcpy (netload_if, optarg, sizeof (netload_if));
|
||||
(void) ddsrt_strlcpy (netload_if, optarg, sizeof (netload_if));
|
||||
if ((col = strrchr (netload_if, ':')) == NULL || col == netload_if ||
|
||||
(sscanf (col+1, "%lf%n", &netload_bw, &pos) != 1 || (col+1)[pos] != 0))
|
||||
error3 ("-d%s: expected DEVICE:BANDWIDTH\n", optarg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue