Fit w5500 to lwip, fix some unintialized params and printf warning.

This commit is contained in:
涂煜洋
2023-09-06 11:12:42 +08:00
parent 8b32c2f4ed
commit 31b939fbb8
29 changed files with 1736 additions and 1733 deletions
@@ -116,7 +116,7 @@ static int CopyRecursive(const char *from, const char *to, char *buf,
DIR *dirp;
struct dirent *dirent;
char *sub_from, *sub_to;
char *sub_from = NULL, *sub_to = NULL;
ret = mkdir(to, 0777);
if (ret < 0) {
@@ -31,7 +31,7 @@ static void PrintOctal(char *str, int len, uint64_t value)
char *cp;
int written_len;
written_len = sprintf(buf, "%0*llo", len, value);
written_len = sprintf(buf, "%0*lo", len, value);
cp = buf + written_len - len;
if (*cp == '0')