[Nut-upsdev] Default NUT PORT
Arjen de Korte
nut+devel at de-korte.org
Sun Jan 14 18:00:44 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
variable 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
More information about the Nut-upsdev
mailing list