mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[secsave] enum secsave_errno -> secsave_errno_T
This commit is contained in:
parent
4c159b33cf
commit
b7a8866f3d
@ -65,7 +65,7 @@
|
|||||||
/* FIXME: locking system on files about to be rewritten ? */
|
/* FIXME: locking system on files about to be rewritten ? */
|
||||||
/* FIXME: Low risk race conditions about ssi->file_name. */
|
/* 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
|
/** 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 *
|
char *
|
||||||
secsave_strerror(enum secsave_errno secsave_error, struct terminal *term)
|
secsave_strerror(secsave_errno_T secsave_error, struct terminal *term)
|
||||||
{
|
{
|
||||||
switch (secsave_error) {
|
switch (secsave_error) {
|
||||||
case SS_ERR_OPEN_READ:
|
case SS_ERR_OPEN_READ:
|
||||||
|
@ -28,7 +28,9 @@ enum secsave_errno {
|
|||||||
SS_ERR_OTHER,
|
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 {
|
struct secure_save_info {
|
||||||
FILE *fp; /**< file stream pointer */
|
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 *, ...);
|
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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user