summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2006-08-23 03:48:03 +0000
committerjsorg71 <jsorg71>2006-08-23 03:48:03 +0000
commit56039620612a933a1152601660c41cd04e9b9c4d (patch)
tree5a632fb7e7595d91cfee954cc35b6d592fdee022
parent32a405a1d9b93f2b619175e257fa799a9af7f4bb (diff)
downloadxrdp-proprietary-56039620612a933a1152601660c41cd04e9b9c4d.tar.gz
xrdp-proprietary-56039620612a933a1152601660c41cd04e9b9c4d.zip
fix warning and some comments
-rw-r--r--sesman/env.c7
1 files 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);