List Info

Thread: checkin: fix common/util build busters on Solaris




checkin: fix common/util build busters on Solaris
user name
2007-11-02 14:22:30
Synopsis
========
Fixes common/util build busters on Solaris

Branches: HEAD
Suggested Reviewer: anyone (already checked-in)


Description
===========

Fixes these build busters, introduced yesterday:

"platform/unix/unix_pref.cpp", line 153: Error:
Formal argument 1 of type
const char* in call to strncasecmp(const char*, const char*,
unsigned) is
being passed void*.
"platform/unix/unix_pref.cpp", line 155: Error:
Formal argument str of type
char* in call to delete_string(char*) is being passed
void*.


Files Affected
==============

common/util/platform/unix/unix_pref.cpp


Testing Performed
=================

Unit Tests:
* None

Integration Tests:
* None

Leak Tests:
* None

Performance Tests:
* None

Platforms Tested: none
Build verified: sunos-5.10-sparc-server


QA Hints
===============

n/a


Index: common/util/platform/unix/unix_pref.cpp
============================================================
=======
RCS file:
/cvsroot/common/util/platform/unix/unix_pref.cpp,v
retrieving revision 1.17
diff -u -r1.17 unix_pref.cpp
--- common/util/platform/unix/unix_pref.cpp	2 Nov 2007
07:06:04 -0000	1.17
+++ common/util/platform/unix/unix_pref.cpp	2 Nov 2007
19:15:28 -0000
 -150,9
+150,9 
             CHXSimpleList::Iterator ndx =
rEnvList.Begin();
             for (; ndx != rEnvList.End(); ++ndx)
             {
-                if(!strnicmp((*ndx),pArr,strlen(pArr)))
+                if(!strnicmp((const
char*)(*ndx),pArr,strlen(pArr)))
                 {
-                	delete_string(*ndx);
+                	delete_string((char*)*ndx);
                 	rEnvList.RemoveAt(ndx);
 			break;					
                 }


-- 
Dean Collins
Server Technical Lead, RealNetworks, Inc. -- http://www.realnetworks.c
om
Helix Server Project Owner -- http://helix-s
erver.helixcommunity.org

_______________________________________________
Common-dev mailing list
Common-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/comm
on-dev

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )