Cleanup up non-prototyped functions (static) and const-correctness
More fixes based on the compiler directives -Wcast-qual -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations. Not everything with regards to -Wcast-qual has been fixed as some have unwanted consequences for the rest of the code.
This commit is contained in:
parent
169b7f4a13
commit
b6c5d2e1a6
16 changed files with 98 additions and 93 deletions
|
@ -28,7 +28,7 @@ typedef UINT32 uint32_t;
|
|||
}
|
||||
#endif
|
||||
|
||||
int unhexify(unsigned char *obuf, const char *ibuf)
|
||||
static int unhexify(unsigned char *obuf, const char *ibuf)
|
||||
{
|
||||
unsigned char c, c2;
|
||||
int len = strlen(ibuf) / 2;
|
||||
|
@ -62,7 +62,7 @@ int unhexify(unsigned char *obuf, const char *ibuf)
|
|||
return len;
|
||||
}
|
||||
|
||||
void hexify(unsigned char *obuf, const unsigned char *ibuf, int len)
|
||||
static void hexify(unsigned char *obuf, const unsigned char *ibuf, int len)
|
||||
{
|
||||
unsigned char l, h;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue