From: Pavel Pisa Date: Sun, 13 Nov 2011 14:30:47 +0000 (+0100) Subject: Update archaic hiterm tool as well. X-Git-Url: https://rtime.felk.cvut.cz/gitweb/sysless.git/commitdiff_plain/c6d0b8f812d69b52c4190988f4d92673a9b158e7 Update archaic hiterm tool as well. Signed-off-by: Pavel Pisa --- diff --git a/arch/h8300/generic/tools/tohit/hiterm.c b/arch/h8300/generic/tools/tohit/hiterm.c index 26f8823..01bfc2a 100644 --- a/arch/h8300/generic/tools/tohit/hiterm.c +++ b/arch/h8300/generic/tools/tohit/hiterm.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include @@ -62,7 +63,7 @@ void SaveBA(int fd,char *buf,int len) char str[100]; int i; FILE * F; - __s16 * x; + int16_t * x; if (!bbuf){ printf("Error bufer empty\n"); @@ -84,7 +85,7 @@ void SaveBA(int fd,char *buf,int len) printf("%s\n",strerror(errno)); return; } - x=(__s16 *)bbuf; + x=(int16_t *)bbuf; for(i=0;i<(Len/2);i++){ fprintf(F,"%07d\n",*x); x++; @@ -244,7 +245,7 @@ void GetCB(int fd) char str[100]; int i; FILE * F; - __s16 * x; + int16_t * x; sprintf(str,"%s.%03d",GName,GSt); @@ -254,7 +255,7 @@ void GetCB(int fd) printf("%s\n",strerror(errno)); return; } - x=(__s16 *)bbuf; + x=(int16_t *)bbuf; for(i=0;i<(Len/2);i++){ fprintf(F,"%07d\n",*x); x++; @@ -277,7 +278,7 @@ void GetMCB(int fd) char str[100]; int i; FILE * F; - __s16 * x; + int16_t * x; sprintf(str,"%s.dat",GName); if(GSt==0)F=fopen(str,"w"); @@ -287,7 +288,7 @@ void GetMCB(int fd) printf("%s\n",strerror(errno)); return; } - x=(__s16 *)bbuf; + x=(int16_t *)bbuf; for(i=0;i<(Len/2);i++){ if(i==(Len/2)-1) fprintf(F,"%07d\n",*x); else fprintf(F,"%07d ",*x);