[Nut-upsdev] Default NUT PORT (errrr...)

Arjen de Korte nut+devel at de-korte.org
Sun Jan 14 18:13:42 CET 2007


Arjen de Korte wrote:

>> I think a better solution is to just #define PORT as a character
>> string in the first place. As far as I can see, this primarily affects
>> two lines: include/config.h:197 (i.e. configure.in:505) and
>> clients/upsclient.c:966.
> That might be an option later on. But since that requires a change of the
> upsclient interface, that was not my first thought.

In addition to the above, the preprocessor can convert a numeric
*constant* to a string, but the other way around can only be done at
runtime as far as I know. So unless we change the port in upsclient.c to
a string instead of an int, this is counter productive.

Best regards, Arjen

_______________________________________________
Nut-upsdev mailing list
Nut-upsdev at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev




More information about the Nut-upsdev mailing list