summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2003-08-29 14:59:02 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2003-08-29 14:59:02 +0000
commite6dc2fd9a33527fd3a47edbb6baabc5d676e0361 (patch)
tree45c729d1f5bd276963bec2e5d0fc3e54eec9b746
parenta38e2bba6209b338efa410ac762bb5533d245e5e (diff)
downloadATCD-e6dc2fd9a33527fd3a47edbb6baabc5d676e0361.tar.gz
ChangeLogTag:Fri Aug 29 07:57:05 2003 Ossama Othman <ossama@dre.vanderbilt.edu>
-rw-r--r--ASNMP/asnmp/ChangeLog7
-rw-r--r--ASNMP/asnmp/octet.cpp4
2 files changed, 9 insertions, 2 deletions
diff --git a/ASNMP/asnmp/ChangeLog b/ASNMP/asnmp/ChangeLog
index af4c2469745..03018bbfd94 100644
--- a/ASNMP/asnmp/ChangeLog
+++ b/ASNMP/asnmp/ChangeLog
@@ -1,3 +1,10 @@
+Fri Aug 29 07:57:05 2003 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * octet.cpp (to_string_hex):
+
+ Fixed "string literal converted to char *" warning. String
+ literals are now considered "const" by standard C++.
+
Tue Mar 16 16:28:14 1999 David L. Levine <levine@cs.wustl.edu>
* address.cpp, address.h, asn1.cpp, asn1.h, counter.cpp, ctr64.cpp,
diff --git a/ASNMP/asnmp/octet.cpp b/ASNMP/asnmp/octet.cpp
index 216739cf7a6..b75a5186178 100644
--- a/ASNMP/asnmp/octet.cpp
+++ b/ASNMP/asnmp/octet.cpp
@@ -579,11 +579,11 @@ const char *OctetStr::to_string_hex()
// TODO: verify ACE_OS:: on NT works like this or not
#if defined(__unix)
- char *fmt = " %s\n";
+ const char *fmt = " %s\n";
#endif // __unix
#if defined(_WIN32)
- char *fmt = " %s\r\n";
+ const char *fmt = " %s\r\n";
#endif // _WIN32
ACE_OS::sprintf(line_ptr, fmt, char_buf);