diff options
-rw-r--r-- | device-functions.c | 5 | ||||
-rw-r--r-- | instr-daemon.c | 2 | ||||
-rw-r--r-- | menus.c | 4 | ||||
-rw-r--r-- | parser.c | 2 |
4 files changed, 7 insertions, 6 deletions
diff --git a/device-functions.c b/device-functions.c index 62ca0ff..2ec40e8 100644 --- a/device-functions.c +++ b/device-functions.c @@ -4566,7 +4566,8 @@ int IO_Setup_RS232(int baud, char hardhand, gboolean update_flash) return OK; } -int change_password (gchar *old_password, gchar *new_password) { +int change_password (gchar *old_password, gchar *new_password) +{ gboolean old_valid = TRUE; @@ -4577,7 +4578,7 @@ int change_password (gchar *old_password, gchar *new_password) { // only happens when resetting the password to the default. if (old_password != NULL) { printf ("verifying old password: %s\n", old_password); //FIXME with real function - // check, and set old_valid = FALSE if the password check fails + // check, and set old_valid = FALSE if the password check fails } if (old_valid == TRUE) { diff --git a/instr-daemon.c b/instr-daemon.c index ffd7153..e1e29fb 100644 --- a/instr-daemon.c +++ b/instr-daemon.c @@ -349,7 +349,7 @@ static gboolean periodic_poll (void) } } GPIB_check_for_device_clear_signal(); - + Update_Main_Menu_If_Visible(); return TRUE; @@ -1489,8 +1489,8 @@ static void Submenu_Display(int change_selection) Submenu_Structure[0]=mode_go_to_local; Submenu_Structure[1]=mode_exit_normal_submenu; } else { - Submenu_max_entry=0; - Submenu_Structure[0]=mode_exit_normal_submenu; + Submenu_max_entry=0; + Submenu_Structure[0]=mode_exit_normal_submenu; } break; @@ -3640,7 +3640,7 @@ static int Go_sys_pwd_92(gchar** response, int channel, char *parameter,int comm error_num = change_password (old_password, new_password); } - g_free (new_password); + g_free (new_password); g_free (old_password); return error_num; |