Fixed compiler warnings to make code compile with gcc's -pedantic switch
This commit is contained in:
parent
607d27e0c6
commit
1e1e44a3f8
42 changed files with 313 additions and 286 deletions
|
@ -33,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: tree.c,v 1.14 2007/11/17 10:32:54 adamdunkels Exp $
|
||||
* $Id: tree.c,v 1.15 2007/11/17 18:05:21 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -139,7 +139,7 @@ update_rtmetric(struct tree_conn *tc)
|
|||
if(tc->local_rtmetric == RTMETRIC_MAX) {
|
||||
strcpy(buf, " ");
|
||||
} else {
|
||||
snprintf(buf, sizeof(buf), "%d", tc->local_rtmetric);
|
||||
sprintf(buf, "%d", tc->local_rtmetric);
|
||||
}
|
||||
ether_set_text(buf);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue