Commit 00c88035 authored by Alessandro Rubini's avatar Alessandro Rubini

userspace: trivial: remove some build warnings

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 148a77e0
......@@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <minipc.h>
......
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <minipc.h>
......@@ -61,7 +62,9 @@ void show_ports(void)
snprintf(if_name, 10, "wr%d", i);
for(j=0;j<port_list.num_ports;j++)
if(!strcmp(port_list.port_names[j], if_name)) { found = 1; break; }
if(!strcmp(port_list.port_names[j], if_name)) {
found = 1; break;
}
if(!found) continue;
......
......@@ -113,22 +113,10 @@ static int parse_mask(char *arg, unsigned long *pmask)
return 0;
}
static void exit_mask(int present)
{
if (present)
fprintf(stderr, "%s: can't set mask twice from cmdline\n",
prgname);
else
fprintf(stderr, "%s: please set port mask before config\n",
prgname);
exit(1);
}
int main(int argc, char *argv[])
{
int c, i, arg;
unsigned long conf_pmask; //current '--ep' port mask for which we parse other args
unsigned long conf_pmask = 0; //current '--ep' port mask
prgname = argv[0];
......
......@@ -62,6 +62,7 @@ int hal_init_timing()
case HAL_TIMING_MODE_FREE_MASTER:
case HAL_TIMING_MODE_BC:
default: /* never hit, but having it here prevents a warning */
rts_set_mode(RTS_MODE_GM_FREERUNNING);
tmo_init(&lock_tmo, LOCK_TIMEOUT_INT, 0);
break;
......
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