summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwchang0222%aol.com <devnull@localhost>2003-10-09 01:35:19 +0000
committerwchang0222%aol.com <devnull@localhost>2003-10-09 01:35:19 +0000
commit90936408eaadf33a87e70df7c73b436621898f2c (patch)
tree4f9c5f68fcaceff0d541bcbec7cc77cb0cb268fb
parenta731df5db0b2c84ed7570c6edf6e6906ea4232e1 (diff)
downloadnspr-hg-90936408eaadf33a87e70df7c73b436621898f2c.tar.gz
Bugzilla bug 221124: declare variables with const. Thanks to
timeless@bemail.org for the patch. Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-rw-r--r--pr/src/linking/prlink.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pr/src/linking/prlink.c b/pr/src/linking/prlink.c
index 7c583639..1ebf51f5 100644
--- a/pr/src/linking/prlink.c
+++ b/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) {