warnings cleanup v2

This commit is contained in:
Mario Fetka
2026-05-22 16:03:46 +02:00
parent 7f66df5a6e
commit 09a3f9f551
2 changed files with 3 additions and 4 deletions

View File

@@ -422,9 +422,9 @@ int func_exec(int argc, char *argv[], int mode)
xfree(buff);
if (nargv != NULL) {
if (!mode)
spawnvp(P_WAIT, buf, nargv);
spawnvp(P_WAIT, buf, (const char *const *)nargv);
else
execvp(buf, nargv);
execvp(buf, (const char *const *)nargv);
}
xfree(buf);
}

View File

@@ -87,8 +87,6 @@ GPL. If anybody who knows more about copyright and sees any problems
with this, please tell me.
****************************************************************************/
#include <string.h>
/******************* Data types ***************************/
typedef unsigned char buf32[32];
typedef unsigned char buf16[16];
@@ -120,6 +118,7 @@ static buf32 encryptkeys =
0x6B,0x0F,0xD5,0x70,0xAE,0xFB,0xAD,0x11,
0xF4,0x47,0xDC,0xA7,0xEC,0xCF,0x50,0xC0};
#include <string.h>
#include "nwcrypt.h"
static void
shuffle1(buf32 temp, unsigned char *target)