]> git.sur5r.net Git - gsconf/blobdiff - shell.c
A bunch of fixes for various compiler warnings
[gsconf] / shell.c
diff --git a/shell.c b/shell.c
index 744db98d8b726fdf4f098daca0a221a427e6e39e..8f32679f4eda10aa26c7dd2bdf0fc02aef4d4ce3 100644 (file)
--- a/shell.c
+++ b/shell.c
@@ -67,7 +67,6 @@ void printError(int errCode) {
 
 void shell_set(char ** argv, int elem) {
 
-        int n;
         if (strncmp(argv[1], "name", 4) == 0) {
                 if (elem != 3) {
                         printf("set name [name]\n");
@@ -86,8 +85,8 @@ char * copyString(char * data) {
 
 void password(void) {
         if (settings.password == NULL) {
-               printf("\033[91mWarning: As the protocol of the switch wants it that way, all configuration packets are send as broadcasts, meaning everyone on this net can sniff your password!\033[0m\n");
-                settings.password = copyString(getpass("Password: "));
+               printf("\033[91mWarning: As the protocol of the switch wants it that way, all configuration packets are send as broadcasts. Even though Netgear is 'encrypting' the password it, the encryption used, is one step away from plaintext.\033[0m\n");
+                settings.password = copyString((char *)getpass("Password: "));
         }
 }