From: Matthew Fernandez Date: Fri, 22 Jul 2022 01:44:30 +0000 (-0700) Subject: smyrna safestrdup: accept a const pointer X-Git-Tag: 5.0.1~29^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e67bccc9afc2f5aba3c4d662a5cce5e9c4760769;p=graphviz smyrna safestrdup: accept a const pointer This will simplify an upcoming change. --- 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