Merge multiple hex conversions
[deliverable/binutils-gdb.git] / gdb / gdbserver / gdbreplay.c
index a02a824072b0998cfdde5cdfb1858b07b04631bb..79aa8aa8a859dbe1c8ef9bdd2960fc8c8ffc17ae 100644 (file)
@@ -259,7 +259,7 @@ remote_open (char *name)
 }
 
 static int
-tohex (int ch)
+fromhex (int ch)
 {
   if (ch >= '0' && ch <= '9')
     {
@@ -322,11 +322,11 @@ logchar (FILE *fp)
          ch2 = fgetc (fp);
          fputc (ch2, stdout);
          fflush (stdout);
-         ch = tohex (ch2) << 4;
+         ch = fromhex (ch2) << 4;
          ch2 = fgetc (fp);
          fputc (ch2, stdout);
          fflush (stdout);
-         ch |= tohex (ch2);
+         ch |= fromhex (ch2);
          break;
        default:
          /* Treat any other char as just itself */
This page took 0.025075 seconds and 4 git commands to generate.