Skip to content

Commit ab66fe5

Browse files
committed
Make struct outgoing_journal private to logsrvd_queue.c
1 parent dfa1434 commit ab66fe5

2 files changed

Lines changed: 8 additions & 14 deletions

File tree

logsrvd/logsrvd.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,6 @@ struct listener {
175175
};
176176
TAILQ_HEAD(listener_list, listener);
177177

178-
/*
179-
* Queue of finished journal files to be relayed.
180-
*/
181-
struct outgoing_journal {
182-
TAILQ_ENTRY(outgoing_journal) entries;
183-
char *journal_path;
184-
};
185-
TAILQ_HEAD(outgoing_journal_queue, outgoing_journal);
186-
187178
/* iolog_writer.c */
188179
struct eventlog *evlog_new(const TimeSpec *submit_time, InfoMessage * const *info_msgs, size_t infolen, struct connection_closure *closure);
189180
bool iolog_init(const AcceptMessage *msg, struct connection_closure *closure);

logsrvd/logsrvd_queue.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,14 @@
5858

5959
#include <logsrvd.h>
6060

61-
#if defined(HAVE_STRUCT_DIRENT_D_NAMLEN) && HAVE_STRUCT_DIRENT_D_NAMLEN
62-
# define NAMLEN(dirent) (dirent)->d_namlen
63-
#else
64-
# define NAMLEN(dirent) strlen((dirent)->d_name)
65-
#endif
61+
/*
62+
* Queue of finished journal files to be relayed.
63+
*/
64+
struct outgoing_journal {
65+
TAILQ_ENTRY(outgoing_journal) entries;
66+
char *journal_path;
67+
};
68+
TAILQ_HEAD(outgoing_journal_queue, outgoing_journal);
6669

6770
static struct outgoing_journal_queue outgoing_journal_queue =
6871
TAILQ_HEAD_INITIALIZER(outgoing_journal_queue);

0 commit comments

Comments
 (0)