1
0
Fork 0
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:
Jörg Sommer 2024-01-01 19:10:21 +01:00 committed by Oliver Kiddle
parent 4929910267
commit fe276d3873
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -1578,7 +1578,7 @@ typedef int (*Hookfn) _((Hookdef, void *));
struct hookdef {
Hookdef next;
char *name;
const char *name;
Hookfn def;
int flags;
LinkList funcs;