Skip to content

Commit

Permalink
sockbuf:fix signedness warning
Browse files Browse the repository at this point in the history
sockbuf.h:45:1: note: expected ‘const uchar * {aka const unsigned char
*}’ but argument is of type ‘char *’
putSockN(const uchar *cp, int n);
  • Loading branch information
andy5995 committed Sep 6, 2018
1 parent e6e904e commit d269809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sockbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ putSock1(uchar c)
}

void
putSockN(const uchar *cp, int n)
putSockN(const char *cp, int n)
{
for (; n > 0; n--,cp++) putSock1(*cp);
}
2 changes: 1 addition & 1 deletion src/sockbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ sockBufWrite(void);
void
putSock1(uchar c);
void
putSockN(const uchar *cp, int n);
putSockN(const char *cp, int n);

0 comments on commit d269809

Please sign in to comment.