X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/bf0a00f106b55399a0e335e7626a8c41c416ae0b..56223c36f99ab1c106ee503976b34c92bb6d9088:/control.c?ds=inline diff --git a/control.c b/control.c index 4909648..092ab8e 100644 --- a/control.c +++ b/control.c @@ -1,12 +1,13 @@ // L2TPNS: control -char const *cvs_id_control = "$Id: control.c,v 1.3 2004/11/17 08:23:34 bodea Exp $"; - #include +#include +#include + #include "l2tpns.h" #include "control.h" -int pack_control(char *data, int len, u8 type, int argc, char *argv[]) +int pack_control(uint8_t *data, int len, uint8_t type, int argc, char *argv[]) { struct nsctl_packet pkt; struct nsctl_args arg; @@ -62,7 +63,7 @@ int pack_control(char *data, int len, u8 type, int argc, char *argv[]) return sz; } -int unpack_control(struct nsctl *control, char *data, int len) +int unpack_control(struct nsctl *control, uint8_t *data, int len) { struct nsctl_packet pkt; char *p = pkt.argv; @@ -102,7 +103,7 @@ int unpack_control(struct nsctl *control, char *data, int len) if (len < sz + 1) return NSCTL_ERR_SHORT; - s = (u8) *p; + s = (uint8_t) *p; *p++ = 0; // null terminate previous arg sz++;