]> granicus.if.org Git - postgresql/commitdiff
Remove compile warning.
authorBruce Momjian <bruce@momjian.us>
Thu, 26 Feb 1998 16:06:20 +0000 (16:06 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 26 Feb 1998 16:06:20 +0000 (16:06 +0000)
src/interfaces/ecpg/lib/typename.c

index a79fa67202d9270401f2a70e033a76e62e44949d..f4c0b160632480ed2b688cc44daad2309074b0d6 100644 (file)
@@ -1,3 +1,4 @@
+#include <stdlib.h>
 #include <ecpgtype.h>
 /*
  * This function is used to generate the correct type names.
@@ -7,7 +8,7 @@ ECPGtype_name(enum ECPGttype typ)
 {
        switch (typ)
        {
-                       case ECPGt_char:return "char";
+               case ECPGt_char:return "char";
                case ECPGt_unsigned_char:
                        return "unsigned char";
                case ECPGt_short:
@@ -31,4 +32,5 @@ ECPGtype_name(enum ECPGttype typ)
                default:
                        abort();
        }
+       return NULL;
 }