/* -*-c-*-
*
- * $Id: crc-mktab.c,v 1.1 2000/07/21 19:01:33 mdw Exp $
+ * $Id: crc-mktab.c,v 1.2 2000/10/08 11:07:21 mdw Exp $
*
* Build CRC tables
*
/*----- Revision history --------------------------------------------------*
*
* $Log: crc-mktab.c,v $
+ * Revision 1.2 2000/10/08 11:07:21 mdw
+ * With no arguments, give an error rather than spewing a big table at the
+ * user.
+ *
* Revision 1.1 2000/07/21 19:01:33 mdw
* Generate the CRC table rather than hardcoding it.
*
poly = 0x1021;
break;
case 32:
- case 0:
poly = 0x04c11db7;
flags |= f_reverse;
bits = 32;
break;
+ case 0:
+ die(EXIT_FAILURE, "no polynomial or bit width set");
+ break;
default:
die(EXIT_FAILURE, "no standard polynomials for %u bits", bits);
break;