tech-crypto archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: OpenSSH enum patch
>OpenSSH defines enums for syslog facilities and levels, but assumes (e.g.
>in log_facility_number and log_level_number), that it's OK to cast -1 to a
>value of this type, even though -1 isn't a member of either enum. This
>may stop working on NetBSD/arm sometime soon.
>
>A simple fix to this is below. It would be better if the extra value had
>a more descriptive name, and if it were used by name everywhere rather
>than hardcoding -1, but this fix is enough to get the code to compile
>correctly with -fshort-enums.
please send it to markus%openbsd.org.@localhost
itojun
Home |
Main Index |
Thread Index |
Old Index