mirror of https://github.com/wolfSSL/wolfssh.git
add include of process.h for _getpid and add a cast to fix warning
parent
12b7c3af93
commit
c349510cc3
|
@ -57,6 +57,9 @@
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef WIN32
|
||||||
|
#include <process.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
struct WOLFSSHD_CONFIG {
|
struct WOLFSSHD_CONFIG {
|
||||||
void* heap;
|
void* heap;
|
||||||
|
|
|
@ -2590,7 +2590,7 @@ static int SFTP_CreateLongName(WS_SFTPNAME* name)
|
||||||
totalSz += 7; /* for all ' ' spaces */
|
totalSz += 7; /* for all ' ' spaces */
|
||||||
totalSz += 3 + 8 + 8; /* linkCount + uid + gid */
|
totalSz += 3 + 8 + 8; /* linkCount + uid + gid */
|
||||||
WSNPRINTF(sizeStr, sizeof(sizeStr) - 1, "%8lld", ((long long int)atr->sz[1] << 32) + (long long int)(atr->sz[0]));
|
WSNPRINTF(sizeStr, sizeof(sizeStr) - 1, "%8lld", ((long long int)atr->sz[1] << 32) + (long long int)(atr->sz[0]));
|
||||||
totalSz += WSTRLEN(sizeStr);
|
totalSz += (int)WSTRLEN(sizeStr);
|
||||||
#else
|
#else
|
||||||
totalSz = name->fSz;
|
totalSz = name->fSz;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue