Files
ocserv/src/auth/common.h
Dimitri Papadopoulos a5d79fc230 Improve const char declarations
Declare C string constants using array syntax, avoid pointer syntax
when possible. They are different, the array syntax generates smaller,
faster code.

Also, const char[] should usually be static, again to avoid poor
compilation and runtime performance where compilers tend to
initialize the const declaration for every call instead of using
.rodata for the string.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2021-12-17 10:26:17 +01:00

11 lines
192 B
C

#ifndef AUTH_COMMON_H
# define AUTH_COMMON_H
#define MAX_PASSWORD_TRIES 3
extern const char pass_msg_second[];
extern const char pass_msg_otp[];
extern const char pass_msg_failed[];
#endif