Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH 6/6] zsh: mark hookdef.name as const



At least *zle_main* uses const strings to initialize its
structure *zlehooks*.
---
 Src/zsh.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Src/zsh.h b/Src/zsh.h
index a0243e98e..fae62b8d0 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -1578,7 +1578,7 @@ typedef int (*Hookfn) _((Hookdef, void *));
 
 struct hookdef {
     Hookdef next;
-    char *name;
+    const char *name;
     Hookfn def;
     int flags;
     LinkList funcs;
-- 
2.43.0





Messages sorted by: Reverse Date, Date, Thread, Author