chiark
/
gitweb
/
~mdw
/
userv-utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New encrypting tunnel seems to work !
[userv-utils]
/
ipif
/
hex.c
diff --git
a/ipif/hex.c
b/ipif/hex.c
index fd889a2d7ebe6584b0f2be785775805e9d9818ba..dc0c749124c3fc761f4f68f217a6dcd4b3cc615b 100644
(file)
--- a/
ipif/hex.c
+++ b/
ipif/hex.c
@@
-7,7
+7,7
@@
#include "hex.h"
#include "hex.h"
-const char *tohex(uint8 *data, int len, char *buf) {
+const char *tohex(uint8
_t
*data, int len, char *buf) {
char *p;
for (p= buf;
char *p;
for (p= buf;
@@
-17,7
+17,7
@@
const char *tohex(uint8 *data, int len, char *buf) {
return buf;
}
return buf;
}
-void unhex(const char *what, const char *txt, uint8 *datar, int *lenr,
+void unhex(const char *what, const char *txt, uint8
_t
*datar, int *lenr,
int minlen, int maxlen) {
int l, v;
char buf[3], *ep;
int minlen, int maxlen) {
int l, v;
char buf[3], *ep;