summaryrefslogtreecommitdiff
path: root/ace/Service_Config.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2004-12-02 02:32:35 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2004-12-02 02:32:35 +0000
commitbf0e95445873fe3043a07ed7575033ac300839da (patch)
tree4d109de2a2045ad37b29aa15800f4ea28b43ed78 /ace/Service_Config.cpp
parentfb2e7d1d61f904d19bfb0c24a8ab61ba7b820d13 (diff)
downloadATCD-bf0e95445873fe3043a07ed7575033ac300839da.tar.gz
ChangeLogTag:Wed Dec 1 15:01:39 2004 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/Service_Config.cpp')
-rw-r--r--ace/Service_Config.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/ace/Service_Config.cpp b/ace/Service_Config.cpp
index f3313e09799..e724c5d30fb 100644
--- a/ace/Service_Config.cpp
+++ b/ace/Service_Config.cpp
@@ -429,15 +429,11 @@ ACE_Service_Config::process_file (const ACE_TCHAR file[])
// because stat is better supported on most non-unix platforms.
ACE_stat exists;
if (ACE_OS::stat (file, &exists) == 0)
- {
- // If it exists, but we couldn't open it for reading then
- // we must not have permission to read it.
- errno = EPERM;
- }
+ // If it exists, but we couldn't open it for reading then we
+ // must not have permission to read it.
+ errno = EPERM;
else
- {
- errno = ENOENT;
- }
+ errno = ENOENT;
result = -1;
}
else