Commit a09d7a16 authored by Adam Wujek's avatar Adam Wujek 💬

userspace/tools: fix warnings for buildroot 2016.02

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 23f267ff
......@@ -52,9 +52,8 @@ typedef struct {char *name; int flag; } speed_spec;
void print_status(int fd) {
int status;
unsigned int arg;
status = ioctl(fd, TIOCMGET, &arg);
ioctl(fd, TIOCMGET, &arg);
fprintf(stderr, "[STATUS]: ");
if(arg & TIOCM_RTS) fprintf(stderr, "RTS ");
if(arg & TIOCM_CTS) fprintf(stderr, "CTS ");
......
......@@ -16,7 +16,7 @@ int main(int argc, char **argv)
FILE *f;
int pagesize = getpagesize();
unsigned int pos, pos_pg, pos_off;
unsigned int len, len_pg, len_off;
unsigned int len, len_pg;
void *address;
char *rest;
......@@ -45,7 +45,6 @@ int main(int argc, char **argv)
pos_pg = pos & ~(pagesize-1);
pos_off = pos & (pagesize-1);
len_pg = (len + pos_off + pagesize-1) & ~(pagesize-1);
len_off = (len + pos_off) & (pagesize-1);
address=mmap(0, len_pg,
PROT_READ, MAP_FILE | MAP_PRIVATE, fileno(f), pos_pg);
......
......@@ -16,7 +16,7 @@ int main(int argc, char **argv)
FILE *f;
int pagesize = getpagesize();
unsigned int pos, pos_pg, pos_off;
unsigned int len, len_pg, len_off;
unsigned int len, len_pg;
void *address;
char *rest;
......@@ -45,7 +45,6 @@ int main(int argc, char **argv)
pos_pg = pos & ~(pagesize-1);
pos_off = pos & (pagesize-1);
len_pg = (len + pos_off + pagesize-1) & ~(pagesize-1);
len_off = (len + pos_off) & (pagesize-1);
address=mmap(0, len_pg, PROT_READ | PROT_WRITE,
MAP_FILE | MAP_SHARED, fileno(f), pos_pg);
......
......@@ -3,6 +3,7 @@
#include <string.h>
#include <getopt.h>
#include <unistd.h>
#include <time.h>
#include <ppsi/ppsi.h>
#include <libwr/shmem.h>
#include <libwr/hal_shmem.h>
......@@ -575,7 +576,6 @@ int main(int argc, char *argv[])
/* try a pps_gen based approach */
uint64_t last_seconds = 0;
uint32_t last_nanoseconds = 0;
wrs_msg_init(argc, argv);
......@@ -673,7 +673,6 @@ int main(int argc, char *argv[])
show_all();
last_seconds = seconds;
last_nanoseconds = nanoseconds;
}
/* If we got broken pipe or anything, exit */
......
......@@ -431,7 +431,7 @@ static int config_rtud(void)
{
struct rtu_vlans_t *cur;
struct rtu_vlan_table_entry rtu_vlan_entry;
int ret, val;
int val;
cur = rtu_vlans;
while(cur) {
......@@ -452,7 +452,7 @@ static int config_rtud(void)
rtu_vlan_entry.prio_override;
}
}
ret = minipc_call(rtud_ch, MINIPC_TIMEOUT, &rtud_export_vlan_entry, &val,
minipc_call(rtud_ch, MINIPC_TIMEOUT, &rtud_export_vlan_entry, &val,
cur->vid, cur->fid, cur->pmask, cur->drop, cur->prio, cur->has_prio,
cur->prio_override);
cur = cur->next;
......
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