[core] clean up fdlog_st and log_error_st decls

typedef redefinitions may cause issues with older compilers

(The intention behind the decls and defines were done to reduce the
 number of unrelated lines modified for the transition to fdlog_st)

Glenn Strauss 2021-10-29 10:15:02 -04:00
parent 584a69c4ae
commit d361f9cca0
2 changed files with 4 additions and 5 deletions

View File

@ -8,12 +8,13 @@
#include "buffer.h"
#include "array.h"
#include "fdlog.h"
/* both should be way smaller than SSIZE_MAX :) */
#define MAX_READ_LIMIT (256*1024)
#define MAX_WRITE_LIMIT (256*1024)
struct fdlog_st; /*(declaration)*/
/*(needed until 'struct log_error_st' below replaced with 'log_error_st')*/
#define log_error_st fdlog_st
typedef struct chunk {

View File

@ -4,8 +4,6 @@
#include "base_decls.h" /* handler_t */
struct fdlog_st; /*(declaration)*/
#define log_error_st fdlog_st
struct fdevents; /* declaration */
typedef struct fdevents fdevents;
@ -48,7 +46,7 @@ struct fdnode_st {
int fdevent_config(const char **event_handler_name, struct log_error_st *errh);
int fdevent_config(const char **event_handler_name, log_error_st *errh);
@ -56,7 +54,7 @@ __attribute_returns_nonnull__
const char * fdevent_show_event_handlers(void);
fdevents * fdevent_init(const char *event_handler, int *max_fds, int *cur_fds, struct log_error_st *errh);
fdevents * fdevent_init(const char *event_handler, int *max_fds, int *cur_fds, log_error_st *errh);
int fdevent_reset(fdevents *ev); /* "init" after fork() */