diff options
author | jsorg71 <jsorg71> | 2006-08-23 03:48:03 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2006-08-23 03:48:03 +0000 |
commit | 56039620612a933a1152601660c41cd04e9b9c4d (patch) | |
tree | 5a632fb7e7595d91cfee954cc35b6d592fdee022 | |
parent | 32a405a1d9b93f2b619175e257fa799a9af7f4bb (diff) | |
download | xrdp-proprietary-56039620612a933a1152601660c41cd04e9b9c4d.tar.gz xrdp-proprietary-56039620612a933a1152601660c41cd04e9b9c4d.zip |
fix warning and some comments
-rw-r--r-- | sesman/env.c | 7 |
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); |