]> granicus.if.org Git - postgresql/commitdiff
A small fix, where default: condition in case had not 'break;'...not required,
authorMarc G. Fournier <scrappy@hub.org>
Tue, 15 Apr 1997 17:46:52 +0000 (17:46 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Tue, 15 Apr 1997 17:46:52 +0000 (17:46 +0000)
but, IMHO, cleaner

src/backend/utils/adt/nabstime.c

index 8f1420bbd2d491d21af61e2765f4855cdfab402f..2b912109c9f23423649e4e4ad9cc053f8a2038ca 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.22 1997/04/02 18:33:50 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.23 1997/04/15 17:46:52 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -223,6 +223,7 @@ printf( "nabstimein- %d fields are type %d (DTK_DATE=%d)\n", nf, dtype, DTK_DATE
     default:
        elog(WARN,"Bad abstime (internal coding error) '%s'",str);
        result = INVALID_ABSTIME;
+       break;
     };
 
     return result;
@@ -550,6 +551,7 @@ abstime_datetime(AbsoluteTime abstime)
 
     default:
         *result = abstime + ((date2j( 1970, 1, 1) - date2j( 2000, 1, 1))*86400);
+       break;
     };
 
     return(result);