mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-05-19 23:21:25 +02:00
52442: mark hookdef.name as const
At least *zle_main* uses const strings to initialize its structure *zlehooks*.
This commit is contained in:
parent
4929910267
commit
fe276d3873
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
2024-01-28 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* Jörg Sommer: 52442: Src/zsh.h: Mark hookdef.name as const
|
||||
|
||||
* Jörg Sommer: 52444: Src/module.c: Mark name argument of some
|
||||
functions const
|
||||
|
||||
|
|
|
@ -1578,7 +1578,7 @@ typedef int (*Hookfn) _((Hookdef, void *));
|
|||
|
||||
struct hookdef {
|
||||
Hookdef next;
|
||||
char *name;
|
||||
const char *name;
|
||||
Hookfn def;
|
||||
int flags;
|
||||
LinkList funcs;
|
||||
|
|
Loading…
Reference in a new issue