Index: trunk/Ohana/src/libautocode/def/SkyRegion.d
===================================================================
--- trunk/Ohana/src/libautocode/def/SkyRegion.d	(revision 41394)
+++ trunk/Ohana/src/libautocode/def/SkyRegion.d	(revision 41395)
@@ -12,11 +12,11 @@
 FIELD   parent,	   PARENT,	   int,            sequence number in full table of parent
 FIELD   index,     INDEX,          int,            sequence number in full table of this entry
-FIELD   depth,	   DEPTH,	   char,           depth of this entry
-FIELD   child,	   CHILD,	   char,           does this entry have children?
-FIELD   table,	   TABLE,	   char,           does this entry have a table?
+FIELD   depth,	   DEPTH,	   byte,           depth of this entry
+FIELD   child,	   CHILD,	   byte,           does this entry have children?
+FIELD   table,	   TABLE,	   byte,           does this entry have a table?
 FIELD   name,      NAME,           char[18],       name / filename
-FIELD   hostFlags, HOST_FLAGS,     char,           flags to define host / backup usage
-FIELD   hostID,    HOST_ID,        unsigned char,  host ID where data is stored
-FIELD   backupID,  BACKUP_ID,      unsigned char,  host ID where backup is stored
+FIELD   hostFlags, HOST_FLAGS,     byte,           flags to define host / backup usage
+FIELD   hostID,    HOST_ID,        byte,  	   host ID where data is stored
+FIELD   backupID,  BACKUP_ID,      byte,  	   host ID where backup is stored
 
 # note : 2012.02.05 : stole 3 bytes from 'name' to use for host ID and
Index: trunk/Ohana/src/libautocode/generate
===================================================================
--- trunk/Ohana/src/libautocode/generate	(revision 41394)
+++ trunk/Ohana/src/libautocode/generate	(revision 41395)
@@ -118,5 +118,5 @@
 	$pt1 = 0;
 	if ($type eq "char")          { $pt1 = "A"; }
-	if ($type eq "byte")   	      { $pt1 = "B"; }
+	if ($type eq "byte")	      { $pt1 = "B"; }
 	if ($type eq "unsigned char") { $pt1 = "B"; }
 	if ($type eq "rawshort")      { $pt1 = "I"; }
@@ -225,5 +225,5 @@
 	$pt1 = 0;
 	if ($type eq "char")   	      { $pt1 = sprintf "A%s", $length; }
-	if ($type eq "byte")   	      { $pt1 = sprintf "I%s", $length; }
+	if ($type eq "byte") 	      { $pt1 = sprintf "I%s", $length; }
 	if ($type eq "unsigned char") { $pt1 = sprintf "I%s", $length; }
 	if ($type eq "rawshort")      { $pt1 = sprintf "I%s", $length; }
@@ -355,5 +355,5 @@
 	$valid = 0;
 	if ($type eq "char")   	       { $Nbytes += 1*$Np; $valid = 1; }
-	if ($type eq "byte")   	       { $Nbytes += 1*$Np; $valid = 1; }
+	if ($type eq "byte") 	       { $Nbytes += 1*$Np; $valid = 1; }
 	if ($type eq "unsigned char")  { $Nbytes += 1*$Np; $valid = 1; }
 	if ($type eq "rawshort")       { $Nbytes += 2*$Np; $valid = 1; }
Index: trunk/Ohana/src/libfits/include/gfitsio.h
===================================================================
--- trunk/Ohana/src/libfits/include/gfitsio.h	(revision 41394)
+++ trunk/Ohana/src/libfits/include/gfitsio.h	(revision 41395)
@@ -19,5 +19,5 @@
 
 /* gfits_bintable_format returns 'byte' as the type associated with one-byte logical (non-char) values */
-typedef char byte;
+typedef unsigned char byte;
 
 /********** FITS Constants *********/
Index: trunk/Ohana/src/libfits/table/F_get_column.c
===================================================================
--- trunk/Ohana/src/libfits/table/F_get_column.c	(revision 41394)
+++ trunk/Ohana/src/libfits/table/F_get_column.c	(revision 41395)
@@ -1,5 +1,5 @@
 # include <ohana.h>
 # include <gfitsio.h>
-#include <inttypes.h>
+# include <inttypes.h>
 # define SWAP_BYTE { \
   char tmp; \
Index: trunk/Ohana/src/libfits/table/F_set_column.c
===================================================================
--- trunk/Ohana/src/libfits/table/F_set_column.c	(revision 41394)
+++ trunk/Ohana/src/libfits/table/F_set_column.c	(revision 41395)
@@ -338,5 +338,5 @@
 
   SET_VALUES("char",       char, "char", char, SWAP_NONE, 1);
-  SET_VALUES("byte",       char, "char", char, SWAP_NONE, 1);
+  SET_VALUES("byte",       byte, "char", char, SWAP_NONE, 1);
   SET_VALUES("short",     short, "char", char, SWAP_BYTE, 1);
   SET_VALUES("int",         int, "char", char, SWAP_WORD, 1);
@@ -345,14 +345,14 @@
   SET_VALUES("double",   double, "char", char, SWAP_DBLE, 1);
 
-  SET_VALUES("char",       char, "byte", char, SWAP_NONE, 1);
-  SET_VALUES("byte",       char, "byte", char, SWAP_NONE, 1);
-  SET_VALUES("short",     short, "byte", char, SWAP_BYTE, 1);
-  SET_VALUES("int",         int, "byte", char, SWAP_WORD, 1);
-  SET_VALUES("int64_t", int64_t, "byte", char, SWAP_DBLE, 1);
-  SET_VALUES("float",     float, "byte", char, SWAP_WORD, 1);
-  SET_VALUES("double",   double, "byte", char, SWAP_DBLE, 1);
+  SET_VALUES("char",       char, "byte", byte, SWAP_NONE, 1);
+  SET_VALUES("byte",       byte, "byte", byte, SWAP_NONE, 1);
+  SET_VALUES("short",     short, "byte", byte, SWAP_BYTE, 1);
+  SET_VALUES("int",         int, "byte", byte, SWAP_WORD, 1);
+  SET_VALUES("int64_t", int64_t, "byte", byte, SWAP_DBLE, 1);
+  SET_VALUES("float",     float, "byte", byte, SWAP_WORD, 1);
+  SET_VALUES("double",   double, "byte", byte, SWAP_DBLE, 1);
 
   SET_VALUES("char",       char, "short", short, SWAP_NONE, 2);
-  SET_VALUES("byte",       char, "short", short, SWAP_NONE, 2);
+  SET_VALUES("byte",       byte, "short", short, SWAP_NONE, 2);
   SET_VALUES("short",     short, "short", short, SWAP_BYTE, 2);
   SET_VALUES("int",         int, "short", short, SWAP_WORD, 2);
@@ -362,5 +362,5 @@
 
   SET_VALUES("char",       char, "int", int, SWAP_NONE, 4);
-  SET_VALUES("byte",       char, "int", int, SWAP_NONE, 4);
+  SET_VALUES("byte",       byte, "int", int, SWAP_NONE, 4);
   SET_VALUES("short",     short, "int", int, SWAP_BYTE, 4);
   SET_VALUES("int",         int, "int", int, SWAP_WORD, 4);
@@ -370,5 +370,5 @@
 
   SET_VALUES("char",       char, "int64_t", int64_t, SWAP_NONE, 8);
-  SET_VALUES("byte",       char, "int64_t", int64_t, SWAP_NONE, 8);
+  SET_VALUES("byte",       byte, "int64_t", int64_t, SWAP_NONE, 8);
   SET_VALUES("short",     short, "int64_t", int64_t, SWAP_BYTE, 8);
   SET_VALUES("int",         int, "int64_t", int64_t, SWAP_WORD, 8);
@@ -378,5 +378,5 @@
 
   SET_VALUES("char",       char, "float", float, SWAP_NONE, 4);
-  SET_VALUES("byte",       char, "float", float, SWAP_NONE, 4);
+  SET_VALUES("byte",       byte, "float", float, SWAP_NONE, 4);
   SET_VALUES("short",     short, "float", float, SWAP_BYTE, 4);
   SET_VALUES("int",         int, "float", float, SWAP_WORD, 4);
@@ -386,5 +386,5 @@
 
   SET_VALUES("char",       char, "double", double, SWAP_NONE, 8);
-  SET_VALUES("byte",       char, "double", double, SWAP_NONE, 8);
+  SET_VALUES("byte",       byte, "double", double, SWAP_NONE, 8);
   SET_VALUES("short",     short, "double", double, SWAP_BYTE, 8);
   SET_VALUES("int",         int, "double", double, SWAP_WORD, 8);
Index: trunk/Ohana/src/opihi/lib.shell/VectorIO.c
===================================================================
--- trunk/Ohana/src/opihi/lib.shell/VectorIO.c	(revision 41394)
+++ trunk/Ohana/src/opihi/lib.shell/VectorIO.c	(revision 41395)
@@ -511,5 +511,5 @@
 
   // assign the data to the actual vector
-  ASSIGN_DATA(byte,    char,    Int);
+  ASSIGN_DATA(byte,    byte,  Int);
   ASSIGN_DATA(char,    char,    Int);
   ASSIGN_DATA(short,   short,   Int);
@@ -537,5 +537,5 @@
 
   // assign the data to the actual vector
-  ASSIGN_DATA_TRANSPOSE(byte,    char,    Int);
+  ASSIGN_DATA_TRANSPOSE(byte,    byte,  Int);
   ASSIGN_DATA_TRANSPOSE(char,    char,    Int);
   ASSIGN_DATA_TRANSPOSE(short,   short,   Int);
