diff options
author | David Lamparter <equinox@diac24.net> | 2019-11-20 17:26:59 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-12-02 15:01:29 +0100 |
commit | 2b64873d24730882af68bdf2881aa380a3a8d17f (patch) | |
tree | 7bb835e81d96fc17ec5d1bed8bb5f5857a9673ad /lib/frr_pthread.c | |
parent | *: make frr_yang_module_info const (diff) | |
download | frr-2b64873d24730882af68bdf2881aa380a3a8d17f.tar.xz frr-2b64873d24730882af68bdf2881aa380a3a8d17f.zip |
*: generously apply const
const const const your boat, merrily down the stream...
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/frr_pthread.c')
-rw-r--r-- | lib/frr_pthread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/frr_pthread.c b/lib/frr_pthread.c index 5c71fac10..55f0b55ed 100644 --- a/lib/frr_pthread.c +++ b/lib/frr_pthread.c @@ -39,7 +39,7 @@ static int fpt_halt(struct frr_pthread *fpt, void **res); static void frr_pthread_destroy_nolock(struct frr_pthread *fpt); /* default frr_pthread attributes */ -struct frr_pthread_attr frr_pthread_attr_default = { +const struct frr_pthread_attr frr_pthread_attr_default = { .start = fpt_run, .stop = fpt_halt, }; @@ -74,7 +74,7 @@ void frr_pthread_finish(void) } } -struct frr_pthread *frr_pthread_new(struct frr_pthread_attr *attr, +struct frr_pthread *frr_pthread_new(const struct frr_pthread_attr *attr, const char *name, const char *os_name) { struct frr_pthread *fpt = NULL; |