blob: Constify name argument of blob_get_def_by_name().
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 8 Mar 2022 22:05:52 +0000 (23:05 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 17 Oct 2022 18:36:21 +0000 (20:36 +0200)
commit0f664765324ab276cad2d1f1e14ae64c81def413
treee33b8f2adba26a10842bf6a6341e3017f7fca68d
parent6d713abb12df82c1c1a5bbbeac5a5d67472d1ca1
blob: Constify name argument of blob_get_def_by_name().

This function does not modify the string, although the char pointer
is used as the ->data pointer of an osl object, which is non-constant.

We need to cast away the const qualifier to avoid a compiler warning,
but that's still better than accepting only non-constant strings,
as this means to put the cast into the callers.
afs.h
blob.c