projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add +git to the version string.
[tinc]
/
src
/
utils.c
diff --git
a/src/utils.c
b/src/utils.c
index
dd7e4de
..
6ea904a
100644
(file)
--- a/
src/utils.c
+++ b/
src/utils.c
@@
-23,9
+23,9
@@
#include "../src/logger.h"
#include "utils.h"
#include "../src/logger.h"
#include "utils.h"
-const char hexadecimals[] = "0123456789ABCDEF";
+
static
const char hexadecimals[] = "0123456789ABCDEF";
-int charhex2bin(char c) {
+
static
int charhex2bin(char c) {
if(isdigit(c))
return c - '0';
else
if(isdigit(c))
return c - '0';
else
@@
-67,7
+67,7
@@
const char *winerror(int err) {
}
#endif
}
#endif
-unsigned int bitfield_to_int(void *bitfield, size_t size) {
+unsigned int bitfield_to_int(
const
void *bitfield, size_t size) {
unsigned int value = 0;
if(size > sizeof value)
size = sizeof value;
unsigned int value = 0;
if(size > sizeof value)
size = sizeof value;