1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-13 05:43:37 -04:00

[secsave] enum secsave_errno -> secsave_errno_T

This commit is contained in:
Witold Filipczyk 2022-01-28 14:55:41 +01:00
parent 4c159b33cf
commit b7a8866f3d
2 changed files with 6 additions and 4 deletions

View File

@ -65,7 +65,7 @@
/* FIXME: locking system on files about to be rewritten ? */
/* FIXME: Low risk race conditions about ssi->file_name. */
enum secsave_errno secsave_errno = SS_ERR_NONE;
secsave_errno_T secsave_errno = SS_ERR_NONE;
/** Open a file for writing in a secure way. @returns a pointer to a
@ -360,7 +360,7 @@ secure_fprintf(struct secure_save_info *ssi, const char *format, ...)
}
char *
secsave_strerror(enum secsave_errno secsave_error, struct terminal *term)
secsave_strerror(secsave_errno_T secsave_error, struct terminal *term)
{
switch (secsave_error) {
case SS_ERR_OPEN_READ:

View File

@ -28,7 +28,9 @@ enum secsave_errno {
SS_ERR_OTHER,
};
extern enum secsave_errno secsave_errno; /**< internal secsave error number */
typedef int secsave_errno_T;
extern secsave_errno_T secsave_errno; /**< internal secsave error number */
struct secure_save_info {
FILE *fp; /**< file stream pointer */
@ -47,7 +49,7 @@ int secure_fputc(struct secure_save_info *, int);
int secure_fprintf(struct secure_save_info *, const char *, ...);
char *secsave_strerror(enum secsave_errno, struct terminal *);
char *secsave_strerror(secsave_errno_T, struct terminal *);
#ifdef __cplusplus
}