diff options
author | imura <imura@FreeBSD.org> | 2005-09-08 15:48:35 +0000 |
---|---|---|
committer | imura <imura@FreeBSD.org> | 2005-09-08 15:48:35 +0000 |
commit | 8042878aa04bb7233ac953194ca1180929b4cc1a (patch) | |
tree | e735ae3f0fd99e2719598ced57447684110840d6 /sys | |
parent | 61e1e0b242373a6e930dad5e229231464ac1b7ee (diff) | |
download | FreeBSD-src-8042878aa04bb7233ac953194ca1180929b4cc1a.zip FreeBSD-src-8042878aa04bb7233ac953194ca1180929b4cc1a.tar.gz |
MFC 1.12: Fix panic on sparc64 caused by touching uninitialized address.
Approved by: re (scottl)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/iconv.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sys/iconv.h b/sys/sys/iconv.h index 90ea3db..914522d 100644 --- a/sys/sys/iconv.h +++ b/sys/sys/iconv.h @@ -128,8 +128,10 @@ struct iconv_cspair { TAILQ_ENTRY(iconv_cspair) cp_link; }; -#define KICONV_CONVERTER(name,size) \ - static DEFINE_CLASS(iconv_ ## name, iconv_ ## name ## _methods, (size)); \ +#define KICONV_CONVERTER(name,size) \ + static struct iconv_converter_class iconv_ ## name ## _class = { \ + "iconv_"#name, iconv_ ## name ## _methods, size, NULL \ + }; \ static moduledata_t iconv_ ## name ## _mod = { \ "iconv_"#name, iconv_converter_handler, \ (void*)&iconv_ ## name ## _class \ |