diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-12-02 11:26:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-02 11:26:11 -0500 |
| commit | 8abe686a3e15ac688d8f73b84cf685a6d47bcbeb (patch) | |
| tree | fa7ec2b2b12d0befc53041d39509f3dda8f78292 /lib/frr_pthread.c | |
| parent | bb2d775cca77ef34738653fbc9f133f178642881 (diff) | |
| parent | 2b64873d24730882af68bdf2881aa380a3a8d17f (diff) | |
Merge pull request #5389 from opensourcerouting/constify
*: constify ALL the things
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 5c71fac10a..55f0b55ed6 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; |
