From e67bccc9afc2f5aba3c4d662a5cce5e9c4760769 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 21 Jul 2022 18:44:30 -0700 Subject: [PATCH] smyrna safestrdup: accept a const pointer This will simplify an upcoming change. --- cmd/smyrna/gui/frmobjectui.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/smyrna/gui/frmobjectui.c b/cmd/smyrna/gui/frmobjectui.c index 468c4639b..521e8c99c 100644 --- a/cmd/smyrna/gui/frmobjectui.c +++ b/cmd/smyrna/gui/frmobjectui.c @@ -31,8 +31,7 @@ static int sel_node; static int sel_edge; static int sel_graph; -static char *safestrdup(char *src) -{ +static char *safestrdup(const char *src) { if (!src) return NULL; else -- 2.40.0