summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_sys_utsname.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2008-10-30 13:26:04 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2008-10-30 13:26:04 +0000
commit7ea2dfb7394d73ed949abc4cfc460bebae7f44df (patch)
tree94048e36fd53e5081794c0451d8c60daf7b348a3 /ACE/ace/OS_NS_sys_utsname.cpp
parent4fdf474d97597e73300b2d3c5a09530a17371c26 (diff)
downloadATCD-7ea2dfb7394d73ed949abc4cfc460bebae7f44df.tar.gz
Thu Oct 30 13:25:00 UTC 2008 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/OS_NS_sys_utsname.cpp')
-rw-r--r--ACE/ace/OS_NS_sys_utsname.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/ace/OS_NS_sys_utsname.cpp b/ACE/ace/OS_NS_sys_utsname.cpp
index f8ec8043fc3..77fbf50faf8 100644
--- a/ACE/ace/OS_NS_sys_utsname.cpp
+++ b/ACE/ace/OS_NS_sys_utsname.cpp
@@ -58,7 +58,7 @@ ACE_OS::uname (ACE_utsname *name)
)
{
// Get information from the two structures
- const char *os;
+ const char *os = 0;
if (vinfo.dwPlatformId == VER_PLATFORM_WIN32_NT)
os = "Windows NT %d.%d";
else
@@ -77,7 +77,7 @@ ACE_OS::uname (ACE_utsname *name)
// half the space to the processor and half the space to
// subtype. The -1 is necessary for because of the space
// between processor and subtype in the machine name.
- const int bufsize = (sizeof (name->machine) / 2) - 1;
+ int const bufsize = (sizeof (name->machine) / 2) - 1;
char processor[bufsize] = "Unknown";
char subtype[bufsize] = "Unknown";