comparison src/twjit.c @ 42:334d883b96ba

twrtp_jibuf_create: make config argument const While this config structure is not a constant in the mathematical sense of the term (it is expected that vty config changes may happen while twjit instance is alive), twjit functions never write to it, only read, hence it is 'const' in the not-quite-mathematical C-standard sense.
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 20 Dec 2024 22:47:20 +0000
parents bda6b24385f7
children
comparison
equal deleted inserted replaced
41:bda6b24385f7 42:334d883b96ba
76 } 76 }
77 77
78 /* create and destroy functions */ 78 /* create and destroy functions */
79 79
80 struct twrtp_jibuf_inst * 80 struct twrtp_jibuf_inst *
81 twrtp_jibuf_create(void *ctx, struct twrtp_jibuf_config *config) 81 twrtp_jibuf_create(void *ctx, const struct twrtp_jibuf_config *config)
82 { 82 {
83 struct twrtp_jibuf_inst *twjit; 83 struct twrtp_jibuf_inst *twjit;
84 84
85 twjit = talloc_zero(ctx, struct twrtp_jibuf_inst); 85 twjit = talloc_zero(ctx, struct twrtp_jibuf_inst);
86 if (!twjit) 86 if (!twjit)