From 2274da47a949135f0273070025e633fa6f157f84 Mon Sep 17 00:00:00 2001 From: "wchang0222%aol.com" Date: Thu, 9 Oct 2003 01:29:23 +0000 Subject: [PATCH] Bugzilla bug 221124: declare variables with const. Thanks to timeless@bemail.org for the patch. --- nsprpub/pr/src/linking/prlink.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nsprpub/pr/src/linking/prlink.c b/nsprpub/pr/src/linking/prlink.c index 7c583639d61f..1ebf51f5263b 100644 --- a/nsprpub/pr/src/linking/prlink.c +++ b/nsprpub/pr/src/linking/prlink.c @@ -1126,14 +1126,14 @@ pr_LoadLibraryByPathname(const char *name, PRIntn flags) cookie = 0; while (get_next_image_info(0, &cookie, &info) == B_OK) { - char *endOfSystemName = strrchr(info.name, '/'); - char *endOfPassedName = strrchr(name, '/'); + const char *endOfSystemName = strrchr(info.name, '/'); + const char *endOfPassedName = strrchr(name, '/'); if( 0 == endOfSystemName ) - endOfSystemName=info.name; + endOfSystemName = info.name; else endOfSystemName++; if( 0 == endOfPassedName ) - endOfPassedName=name; + endOfPassedName = name; else endOfPassedName++; if (strcmp(endOfSystemName, endOfPassedName) == 0) {