summaryrefslogtreecommitdiff
path: root/menus.c
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:20:29 -0500
committerroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:20:29 -0500
commit492e5c38fa1a5e42b4ad43c1daf119cfdedbc252 (patch)
tree4b8502a1db06885e45968db3f4406e73fb117164 /menus.c
parent74b9ff28228e3858ef4bc181a34a9acf9ca6be79 (diff)
tidy up username/password code
Diffstat (limited to 'menus.c')
-rw-r--r--menus.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/menus.c b/menus.c
index bb417f6..fce9623 100644
--- a/menus.c
+++ b/menus.c
@@ -2937,7 +2937,7 @@ static int Submenu_Implement_Changes(void)
{
int error_num;
int call_new_submenu;
- int channel,eprom_loc;
+ int channel;
call_new_submenu=NO;
@@ -3213,11 +3213,7 @@ static int Submenu_Implement_Changes(void)
Nonstd_menu_network();
break;
case mode_password:
- strcpy(globals.Flash.password,"default");
- // FIXME - save password to /etc/shadow here
-
- eprom_loc = (char *) &(globals.Flash.password) - (char *) &(globals.Flash.flash_start);
- writeUserBlock(&globals.Flash, eprom_loc, strlen(globals.Flash.password)+1);
+ change_password (NULL, "default");
break;
case mode_selfcal:
if (error_num=self_cal()) {