mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-06 22:44:38 +08:00
PPP: fixed 2 warnings found by MSVC
This commit is contained in:
parent
8d916b8573
commit
9a10afbbc6
@ -43,6 +43,8 @@
|
|||||||
|
|
||||||
#include "netif/ppp/polarssl/md5.h"
|
#include "netif/ppp/polarssl/md5.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 32-bit integer manipulation macros (little endian)
|
* 32-bit integer manipulation macros (little endian)
|
||||||
*/
|
*/
|
||||||
|
@ -210,7 +210,7 @@ int ppp_vslprintf(char *buf, int buflen, const char *fmt, va_list args) {
|
|||||||
val = va_arg(args, long);
|
val = va_arg(args, long);
|
||||||
if ((long)val < 0) {
|
if ((long)val < 0) {
|
||||||
neg = 1;
|
neg = 1;
|
||||||
val = (unsigned long)-val;
|
val = (unsigned long)-(long)val;
|
||||||
}
|
}
|
||||||
base = 10;
|
base = 10;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user