From f8faa9fe099f7367e631df8ff5ce9a8982b0ae39 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Fri, 2 Jun 2000 03:26:17 +0000 Subject: [PATCH] my last revision created a dns_rdataclass_* enum that had a comma after the last idenfier, and IRIX whined about it. Repeatedly. Sigh. --- lib/dns/gen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/dns/gen.c b/lib/dns/gen.c index d54cdb7b76..b7dd9e0b42 100644 --- a/lib/dns/gen.c +++ b/lib/dns/gen.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: gen.c,v 1.49 2000/06/02 01:07:03 tale Exp $ */ +/* $Id: gen.c,v 1.50 2000/06/02 03:26:17 tale Exp $ */ #include @@ -775,7 +775,8 @@ main(int argc, char **argv) { do { \ s = funname(name, buf1); \ classnum = num; \ - printf("\tdns_rdataclass_%s = %d,\n", s, classnum); \ + printf("\tdns_rdataclass_%s = %d%s\n", s, classnum, \ + classnum != 255 ? "," : ""); \ printf("#define dns_rdataclass_%s\t" \ "((dns_rdataclass_t)dns_rdataclass_%s)\n", s, s); \ } while (0)