summaryrefslogtreecommitdiffstats
path: root/pki/base/osutil
diff options
context:
space:
mode:
authorasn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-12-15 17:54:17 +0000
committerasn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-12-15 17:54:17 +0000
commit6952aa343e0e7378b8f936fcd2903919103d422f (patch)
tree5825b6b227f0e05f6c1d8783c5d1c2f18088c914 /pki/base/osutil
parentf309cc2680b136e8d6f92bdc8a8ef1adad9ebd83 (diff)
downloadpki-6952aa343e0e7378b8f936fcd2903919103d422f.tar.gz
pki-6952aa343e0e7378b8f936fcd2903919103d422f.tar.xz
pki-6952aa343e0e7378b8f936fcd2903919103d422f.zip
osutil: Fixed a lot of build warnings.
Fixed brc #644056. git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1626 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/osutil')
-rw-r--r--pki/base/osutil/src/com/netscape/osutil/UserID.c2
-rw-r--r--pki/base/osutil/src/com/netscape/osutil/unixdefs.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/pki/base/osutil/src/com/netscape/osutil/UserID.c b/pki/base/osutil/src/com/netscape/osutil/UserID.c
index a48e8eb8b..456fe10fd 100644
--- a/pki/base/osutil/src/com/netscape/osutil/UserID.c
+++ b/pki/base/osutil/src/com/netscape/osutil/UserID.c
@@ -33,7 +33,7 @@
* Throw an IllegalArgumentException
*/
void
-unix_throw_exception(JNIEnv *env, char *exception, char *reason)
+unix_throw_exception(JNIEnv *env, const char *exception, const char *reason)
{
jclass exc;
diff --git a/pki/base/osutil/src/com/netscape/osutil/unixdefs.h b/pki/base/osutil/src/com/netscape/osutil/unixdefs.h
index 35e3e2bd7..d5cae2afa 100644
--- a/pki/base/osutil/src/com/netscape/osutil/unixdefs.h
+++ b/pki/base/osutil/src/com/netscape/osutil/unixdefs.h
@@ -10,5 +10,5 @@
#define SECURITY "java/lang/SecurityException"
#define RUNTIME "java/lang/Runtime"
-void unix_throw_exception(JNIEnv *env, char *exception, char *reason);
+void unix_throw_exception(JNIEnv *env, const char *exception, const char *reason);