Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ from queue(3). Refactor code style around the BSD KNF.
This commit is contained in:
@@ -36,10 +36,10 @@
|
||||
* Mainly used in atexit code. */
|
||||
extern bool rc_in_plugin;
|
||||
|
||||
int rc_waitpid (pid_t pid);
|
||||
void rc_plugin_load ();
|
||||
void rc_plugin_unload ();
|
||||
void rc_plugin_run (rc_hook_t, const char *value);
|
||||
int rc_waitpid(pid_t pid);
|
||||
void rc_plugin_load(void);
|
||||
void rc_plugin_unload(void);
|
||||
void rc_plugin_run(RC_HOOK, const char *value);
|
||||
|
||||
/* dlfunc defines needed to avoid ISO errors. FreeBSD has this right :) */
|
||||
#ifndef __FreeBSD__
|
||||
@@ -47,7 +47,7 @@ struct __dlfunc_arg {
|
||||
int __dlfunc_dummy;
|
||||
};
|
||||
|
||||
typedef void (*dlfunc_t) (struct __dlfunc_arg);
|
||||
typedef void (*dlfunc_t)(struct __dlfunc_arg);
|
||||
|
||||
dlfunc_t dlfunc (void * __restrict handle, const char * __restrict symbol);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user