summaryrefslogtreecommitdiffstats
path: root/lib/frr_pthread.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-11-20 17:26:59 +0100
committerDavid Lamparter <equinox@diac24.net>2019-12-02 15:01:29 +0100
commit2b64873d24730882af68bdf2881aa380a3a8d17f (patch)
tree7bb835e81d96fc17ec5d1bed8bb5f5857a9673ad /lib/frr_pthread.h
parent*: make frr_yang_module_info const (diff)
downloadfrr-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.h')
-rw-r--r--lib/frr_pthread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/frr_pthread.h b/lib/frr_pthread.h
index f70c8a0db..89519abae 100644
--- a/lib/frr_pthread.h
+++ b/lib/frr_pthread.h
@@ -99,7 +99,7 @@ struct frr_pthread {
char os_name[OS_THREAD_NAMELEN];
};
-extern struct frr_pthread_attr frr_pthread_attr_default;
+extern const struct frr_pthread_attr frr_pthread_attr_default;
/*
* Initializes this module.
@@ -133,7 +133,7 @@ void frr_pthread_finish(void);
* @param os_name - 16 characters (including '\0') thread name to set in os,
* @return the created frr_pthread upon success, or NULL upon failure
*/
-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);
/*