mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
Remove an unused function, mark a bunch of other functions and variables
as static. Mostly found by sparse.
This commit is contained in:
parent
41916138dd
commit
230f253e9b
4 changed files with 13 additions and 27 deletions
18
data.c
18
data.c
|
@ -101,21 +101,7 @@ struct data data_copy_mem(char *mem, int len)
|
|||
return d;
|
||||
}
|
||||
|
||||
char hexval(char c)
|
||||
{
|
||||
switch (c) {
|
||||
case '0' ... '9':
|
||||
return c - '0';
|
||||
case 'a' ... 'f':
|
||||
return c - 'a';
|
||||
case 'A' ... 'F':
|
||||
return c - 'A';
|
||||
default:
|
||||
assert(0);
|
||||
}
|
||||
}
|
||||
|
||||
char get_oct_char(char *s, int *i)
|
||||
static char get_oct_char(char *s, int *i)
|
||||
{
|
||||
char x[4];
|
||||
char *endx;
|
||||
|
@ -137,7 +123,7 @@ char get_oct_char(char *s, int *i)
|
|||
return val;
|
||||
}
|
||||
|
||||
char get_hex_char(char *s, int *i)
|
||||
static char get_hex_char(char *s, int *i)
|
||||
{
|
||||
char x[3];
|
||||
char *endx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue