diff options
| author | gmcgarry <gmcgarry@NetBSD.org> | 2008-06-24 10:55:48 +0000 |
|---|---|---|
| committer | gmcgarry <gmcgarry@NetBSD.org> | 2008-06-24 10:55:48 +0000 |
| commit | 79fede335459adee2b5280641b1a25fbacc50e6e (patch) | |
| tree | c7cca3d2bdf3f833c90a24c81b9ffdb841ac2102 /sys/dev | |
| parent | 838d34e8282c879dbbadcf60585c73d02207dca3 (diff) | |
The forward declation in the parameter list for a variable-length array is
another gcc extension. Pass the array as a pointer to blob.
See: http://developer.apple.com/documentation/DeveloperTools/gcc-4.0.1/gcc/Variable-Length.html
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/midictl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/midictl.c b/sys/dev/midictl.c index aa2a5299dce..282fd7791b6 100644 --- a/sys/dev/midictl.c +++ b/sys/dev/midictl.c @@ -1,4 +1,4 @@ -/* $NetBSD: midictl.c,v 1.5 2008/04/28 20:23:47 martin Exp $ */ +/* $NetBSD: midictl.c,v 1.6 2008/06/24 10:55:48 gmcgarry Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: midictl.c,v 1.5 2008/04/28 20:23:47 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: midictl.c,v 1.6 2008/06/24 10:55:48 gmcgarry Exp $"); /* * See midictl.h for an overview of the purpose and use of this module. @@ -532,7 +532,7 @@ struct midictl_store { }; static uint32_t store_idx(uint32_t lgcapacity, - uint64_t table[static 1<<lgcapacity], + uint64_t *table, uint64_t key, uint64_t mask); static void store_rehash(midictl_store *s); @@ -637,7 +637,7 @@ store_update(midictl_store *s, class c, uint_fast8_t chan, } static uint32_t -store_idx(uint32_t lgcapacity, uint64_t table[static 1<<lgcapacity], +store_idx(uint32_t lgcapacity, uint64_t *table, uint64_t key, uint64_t mask) { uint32_t val; |
