search for: subdrv_info

Displaying 1 result from an estimated 1 matches for "subdrv_info".

2010 Feb 15
1
upsdrv_info structure
...sue with this on Solaris. I suspect that we're introducing GCC specific behavior here. Technically the typedef here isn't possible in C89, since this suggests that sizeof(upsdrv_info_t) can be determined. This obvious is not the case, since we can (and will) have variable number of subdrv_info elements and therefor the size is variable. Can you elaborate on what your intended use for this was at the time you added this? It looks like currently this is only used for printing some info in the upsdrv_banner() call. For the time being, I think we could fix this by hardcoding the numbe...