From ca91b60c01cffdc3b01efccf1ca6fb5e8fe6cff6 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 20 Jan 1999 17:05:29 +0000 Subject: [PATCH] * demo/dlmain.c (main): add missing const to declaration of name --- ChangeLog | 2 ++ demo/dlmain.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3977bddd2..aa7ef0454 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 1999-01-20 Alexandre Oliva + * demo/dlmain.c (main): add missing const to declaration of name + * libltdl/ltdl.c (find_module): remove the libdir argument, and try to open library only as old_name and dir/dlname (lt_dlopen): use `installed' variable in .la file to decide diff --git a/demo/dlmain.c b/demo/dlmain.c index aab440c60..8d901cbd2 100644 --- a/demo/dlmain.c +++ b/demo/dlmain.c @@ -73,7 +73,7 @@ main (argc, argv) while (s->name) { if (s->address) { - char *name = s->name; + const char *name = s->name; printf ("found symbol: %s\n", name); if (!strcmp ("hello", name)) phello = s->address; -- 2.47.2