jirka-h / haveged

Entropy daemon ![Continuous Integration](https://github.com/jirka-h/haveged/workflows/Continuous%20Integration/badge.svg)
GNU General Public License v3.0
273 stars 34 forks source link

Build failure with NO_COMMAND_MODE #60

Closed nolange closed 3 years ago

nolange commented 3 years ago

v14 and the current master fail to build if NO_COMMAND_MODE is used.

The declaration for extern int first_byte will be missing when compiling haveged.c. Fix this by wrapping the line in an assignment:

#ifndef NO_COMMAND_MODE
   first_byte = arg0[0];
#endif
jirka-h commented 3 years ago

Good catch!

Fixed with 3427ae484cd8567145965af659c1fe17300c14b4