From bf7ba9066e4f0f1c5d19ce233325a59fab723d26 Mon Sep 17 00:00:00 2001 From: Yogev Ezra Date: Thu, 13 Mar 2014 00:37:35 +0000 Subject: [PATCH] Test fixed itoa function (revert the 2 last changes). git-svn-id: svn://kolibrios.org@4640 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/tmpdisk/t_console.c | 4 +--- programs/cmm/tmpdisk/t_window.c | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/programs/cmm/tmpdisk/t_console.c b/programs/cmm/tmpdisk/t_console.c index 2c07450ce9..0c66322974 100644 --- a/programs/cmm/tmpdisk/t_console.c +++ b/programs/cmm/tmpdisk/t_console.c @@ -36,7 +36,6 @@ char Console_Work() { unsigned int disk_size, driver_rezult; char size_t[256]; - dword size_tt; strlwr(#param); // debug(#param); @@ -71,8 +70,7 @@ char Console_Work() else add_disk.DiskSize = atoi(#param+disk_size)*2048; strcpy(#size_t, NEW_DISK_TEXT); - size_tt = itoa(add_disk.DiskSize/2048); - strcat(#size_t, size_tt); + strcat(#size_t, itoa(add_disk.DiskSize/2048)); strcat(#size_t, " MB"); debug(#size_t); add_disk.DiskId = param[1]-'0'; diff --git a/programs/cmm/tmpdisk/t_window.c b/programs/cmm/tmpdisk/t_window.c index da26514df6..648db38290 100644 --- a/programs/cmm/tmpdisk/t_window.c +++ b/programs/cmm/tmpdisk/t_window.c @@ -153,7 +153,7 @@ void Main_Window() break; case evReDraw: sc.get(); - DefineAndDrawWindow(170,150,314,270,0x74,sc.work,"Virtual Disk Manager 0.5.2",0); + DefineAndDrawWindow(170,150,314,270,0x74,sc.work,"Virtual Disk Manager 0.5",0); GetProcessInfo(#Form, SelfInfo); if (Form.status_window>2) break; @@ -225,14 +225,12 @@ unsigned int disk_pos_y[]={60,85,110,60,85,110,60,85,110,60,85,110}; void DrawTmpDisks() { char free_ram_text[60]; - dword free_ram; int i,FreeRAM=GetFreeRAM()/1024; DrawBar(0,51, Form.cwidth,Form.cheight-TOPPANELH-BOTPANELH-2, 0xFFFFFF); DrawBar(0,Form.cheight-BOTPANELH-1, Form.cwidth,1, sc.work_graph); DrawBar(0,Form.cheight-BOTPANELH, Form.cwidth,BOTPANELH, sc.work); strcpy(#free_ram_text, FREE_RAM_TEXT); - free_ram = itoa(FreeRAM); - strcat(#free_ram_text, free_ram); + strcat(#free_ram_text, itoa(FreeRAM)); strcat(#free_ram_text, " MB"); WriteText(10, Form.cheight-13, 0x80, sc.work_text, #free_ram_text); if (disk_num==0)