Skip to content

Commit 817ea34

Browse files
committed
Make some functions static to log_client.c
1 parent 531a2c2 commit 817ea34

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

plugins/sudoers/log_client.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ connect_server(const char *host, const char *port, bool tls,
587587
* Stores socket in closure with O_NONBLOCK and close-on-exec flags set.
588588
* Returns true on success, else false.
589589
*/
590-
bool
590+
static bool
591591
log_server_connect(struct client_closure *closure)
592592
{
593593
struct sudoers_string *server;
@@ -736,7 +736,7 @@ get_free_buf(struct client_closure *closure)
736736
* Appends the wire format message to the closure's write queue.
737737
* Returns true on success, false on failure.
738738
*/
739-
bool
739+
static bool
740740
fmt_client_message(struct client_closure *closure, ClientMessage *msg)
741741
{
742742
struct connection_buffer *buf;
@@ -1184,7 +1184,7 @@ fmt_initial_message(struct client_closure *closure)
11841184
* Appends the wire format message to the closure's write queue.
11851185
* Returns true on success, false on failure.
11861186
*/
1187-
bool
1187+
static bool
11881188
fmt_restart_message(struct client_closure *closure)
11891189
{
11901190
ClientMessage client_msg = CLIENT_MESSAGE__INIT;
@@ -1216,7 +1216,7 @@ fmt_restart_message(struct client_closure *closure)
12161216
* Appends the wire format message to the closure's write queue.
12171217
* Returns true on success, false on failure.
12181218
*/
1219-
bool
1219+
static bool
12201220
fmt_exit_message(struct client_closure *closure, int exit_status, int error)
12211221
{
12221222
ClientMessage client_msg = CLIENT_MESSAGE__INIT;
@@ -1460,7 +1460,7 @@ client_message_completion(struct client_closure *closure)
14601460
* We do this synchronously, since we don't want the command to run
14611461
* before the log server connection is completely established.
14621462
*/
1463-
bool
1463+
static bool
14641464
read_server_hello(struct client_closure *closure)
14651465
{
14661466
struct sudo_event_base *evbase = NULL;

plugins/sudoers/log_client.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,13 @@ struct client_closure {
109109
/* iolog_client.c */
110110
struct client_closure *log_server_open(struct log_details *details, struct timespec *start_time, bool log_io, enum client_state initial_state, const char *reason);
111111
bool log_server_close(struct client_closure *closure, int exit_status, int error);
112-
bool fmt_client_message(struct client_closure *closure, ClientMessage *msg);
113112
bool fmt_accept_message(struct client_closure *closure, const struct eventlog *evlog);
114113
bool fmt_reject_message(struct client_closure *closure, const struct eventlog *evlog);
115114
bool fmt_alert_message(struct client_closure *closure, const struct eventlog *evlog);
116-
bool fmt_exit_message(struct client_closure *closure, int exit_status, int error);
117115
bool fmt_io_buf(struct client_closure *closure, int type, const char *buf, unsigned int len, const struct timespec *delay);
118116
bool fmt_suspend(struct client_closure *closure, const char *signame, const struct timespec *delay);
119117
bool fmt_winsize(struct client_closure *closure, unsigned int lines, unsigned int cols, const struct timespec *delay);
120-
bool log_server_connect(struct client_closure *closure);
121118
void client_closure_free(struct client_closure *closure);
122-
bool read_server_hello(struct client_closure *closure);
123119
extern struct client_closure *client_closure;
124120

125121
#endif /* SUDOERS_LOG_CLIENT_H */

0 commit comments

Comments
 (0)