Commit dc450d61 authored by Federico Vaga's avatar Federico Vaga

tools: fix minor cppcheck warnings

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 75597b63
......@@ -85,7 +85,7 @@ int fau_read_time(long time[3], enum fau_attribute first_attr)
return err;
}
void fau_print_time(long time1[3], long time2[3])
void fau_print_time(const long time1[3], const long time2[3])
{
long result[3];
......
......@@ -124,7 +124,7 @@ static long strtol_or_die(const char *arg)
int main(int argc, char *argv[])
{
/* default attribute */
static int attrdef[FAU_TRIG_NUM_ATTR] = {1, 0, 0, 0, 0, 0, 0, 0, 0 ,0};
const static int attrdef[FAU_TRIG_NUM_ATTR] = {1, 0, 0, 0, 0, 0, 0, 0, 0 ,0};
/* getop attribute */
static int attrval[FAU_TRIG_NUM_ATTR] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
static int force = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment