Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-04-23 17:15:46 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-04-23 17:15:46 +0400
commitcca89be9ade65eacde6be3da6f93c06b3ed585b6 (patch)
tree2369b16cecf252c8eb39ce535fdb811ebd301ca2 /winsup/cygwin/registry.h
parent8ba4144d501d622c5612417ef3c6929d47aa2f87 (diff)
* registry.cc (reg_key::get_dword): Rename from get_int, use DWORD
rather than int type. Avoid compiler warning. (reg_key::set_dword): Rename from set_int, use DWORD rather than int type. Change return type to NTSTATUS. (reg_key::get_string): Change return type to NTSTATUS. (reg_key::set_string): Ditto. * registry.h: Accommodate above changes. * environ.cc (regopt): Test return value of reg_key::get_string as NTSTATUS. * sched.cc (sched_rr_get_interval): Change local int vars to DWORD. Call reg_key::get_dword instead of reg_key::get_int. * shared.cc (init_installation_root): Test return value of reg_key::get_string as NTSTATUS. (shared_info::heap_slop_size): Call reg_key::get_dword rather than reg_key::get_int. (shared_info::heap_chunk_size): Ditto. * shared_info.h (CURR_SHARED_MAGIC): Update. (class shared_info): Change heap_chunk and heap_slop to DWORD values.
Diffstat (limited to 'winsup/cygwin/registry.h')
-rw-r--r--winsup/cygwin/registry.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/registry.h b/winsup/cygwin/registry.h
index 640998a3b..dd239d09c 100644
--- a/winsup/cygwin/registry.h
+++ b/winsup/cygwin/registry.h
@@ -25,13 +25,13 @@ public:
void *operator new (size_t, void *p) {return p;}
void build_reg (HKEY key, REGSAM access, va_list av);
- int error () {return key == NULL;}
+ bool error () {return key == NULL;}
- int get_int (PCWSTR, int);
- int get_string (PCWSTR, PWCHAR, size_t, PCWSTR);
+ DWORD get_dword (PCWSTR, DWORD);
+ NTSTATUS get_string (PCWSTR, PWCHAR, size_t, PCWSTR);
- int set_int (PCWSTR, int);
- int set_string (PCWSTR, PCWSTR);
+ NTSTATUS set_dword (PCWSTR, DWORD);
+ NTSTATUS set_string (PCWSTR, PCWSTR);
bool created () const {return _disposition & REG_CREATED_NEW_KEY;}