Skip to content

Commit 87234d7

Browse files
committed
Refactor: get rid of any sparable use of booth_conf global var in main.c
Even then, booth_conf global variable cannot be turned into static one, since there is this multi-global complication that was mentioned already: transport() of inline-fn.h. Signed-off-by: Jan Pokorný <[email protected]>
1 parent 31fc33f commit 87234d7

File tree

2 files changed

+92
-69
lines changed

2 files changed

+92
-69
lines changed

src/booth.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,18 @@ int client_add(int fd, const struct booth_transport *tpt,
362362

363363
int find_client_by_fd(int fd);
364364
void safe_copy(char *dest, char *value, size_t buflen, const char *description);
365-
int update_authkey(void);
365+
366+
/**
367+
* @internal
368+
* Re-read and reflect possibly new contents of the authentication key file
369+
*
370+
* @note XXX UNUSED
371+
*
372+
* @param[inout] conf_ptr config object to refer to
373+
*
374+
* @return 0 in case of success, -1 otherwise
375+
*/
376+
int update_authkey(struct booth_config *conf_ptr);
366377

367378
/**
368379
* @internal

0 commit comments

Comments
 (0)