From 85ceb721d2e9c53b7d433bfa9408ad80df625ee8 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Sun, 1 Apr 2018 08:02:53 +0000 Subject: [PATCH] Some code cleaning FossilOrigin-Name: 4c8eab5d5ddb31a4d57d73c26b6c014b60b1f80904c87f69d3d76ec1ce2b1fb8 --- src/cw/lw.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/cw/lw.h b/src/cw/lw.h index ca5c6fbd..618315b3 100644 --- a/src/cw/lw.h +++ b/src/cw/lw.h @@ -4,7 +4,6 @@ #include #include -/*#include "conn.h"*/ #include "bstr.h" @@ -36,7 +35,7 @@ (*((uint16_t*)(dst)) = htons(w),2) /** - * Put a dword to to an output buffer. The dword + * Put a dword to an output buffer. The dword * is converted to network byte order. * * @param dst destination buffer @@ -102,18 +101,13 @@ int lw_put_vendor(uint8_t * dst, uint32_t vendorid, uint16_t elemid, uint16_t len); - - /* int lw_in_vendor_specific(struct conn *conn, struct cw_action_in *a, uint8_t * data, int len, struct sockaddr *from); */ - -extern uint16_t lw_checksum(uint8_t *d,int len); -extern int lw_put_sockaddr(uint8_t *dst, struct sockaddr_storage *addr); - +uint16_t lw_checksum(uint8_t *d,int len); #define lw_foreach_elem(d,msg,len) for(d=msg; d