From 56039620612a933a1152601660c41cd04e9b9c4d Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Wed, 23 Aug 2006 03:48:03 +0000 Subject: fix warning and some comments --- sesman/env.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sesman/env.c b/sesman/env.c index 9c06f524..e96966fd 100644 --- a/sesman/env.c +++ b/sesman/env.c @@ -30,7 +30,7 @@ #include "sys/types.h" #include "grp.h" -extern unsigned char g_fixedkey[8]; +extern unsigned char g_fixedkey[8]; /* in sesman.c */ /******************************************************************************/ int DEFAULT_CC @@ -42,11 +42,12 @@ env_check_password_file(char* filename, char* password) g_memset(encryptedPasswd, 0, 16); g_strncpy(encryptedPasswd, password, 8); rfbDesKey(g_fixedkey, 0); - rfbDes(encryptedPasswd, encryptedPasswd); + rfbDes((unsigned char*)encryptedPasswd, (unsigned char*)encryptedPasswd); fd = g_file_open(filename); if (fd == 0) { - log_message(LOG_LEVEL_WARNING, "can't read vnc password file - %s", filename); + log_message(LOG_LEVEL_WARNING, "can't read vnc password file - %s", + filename); return 1; } g_file_write(fd, encryptedPasswd, 8); -- cgit v1.2.1