]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
Update archaic hiterm tool as well.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Sun, 13 Nov 2011 14:30:47 +0000 (15:30 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Sun, 13 Nov 2011 14:30:47 +0000 (15:30 +0100)
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
arch/h8300/generic/tools/tohit/hiterm.c

index 26f8823e2fc7b7ea3f93d70a9a207f1b9e57238a..01bfc2a38aaa684850a3963f5ed26edb905d04ef 100644 (file)
@@ -2,6 +2,7 @@
 #include <string.h>
 #include <termios.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <sys/time.h>
 #include <sys/types.h>
 #include <asm/types.h>
@@ -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);