tftpd: prefix TFTP protocol error E* constants with TFTP_

To avoid mistaking them for `errno` error codes.

Closes #16666
This commit is contained in:
Viktor Szakats 2025-03-07 18:24:43 +01:00
parent 51c9238c76
commit ab2cf88dad
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 25 additions and 25 deletions

View file

@ -51,13 +51,13 @@ struct tftphdr {
#define th_code th_block
#define th_msg th_data
#define EUNDEF 0
#define ENOTFOUND 1
#define EACCESS 2
#define ENOSPACE 3
#define EBADOP 4
#define EBADID 5
#define EEXISTS 6
#define ENOUSER 7
#define TFTP_EUNDEF 0
#define TFTP_ENOTFOUND 1
#define TFTP_EACCESS 2
#define TFTP_ENOSPACE 3
#define TFTP_EBADOP 4
#define TFTP_EBADID 5
#define TFTP_EEXISTS 6
#define TFTP_ENOUSER 7
#endif /* HEADER_CURL_SERVER_TFTP_H */