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>2007-07-18 15:15:51 +0400
committerCorinna Vinschen <corinna@vinschen.de>2007-07-18 15:15:51 +0400
commitc5b1a133c054c785c812b0ff62d4166b0fc5b126 (patch)
treed9d0bbcd153feb8bd72bfcd1a4ada4299462e624 /winsup/cygwin/cygheap.h
parent52a6e6d8c7466fe78ab755ae2895dfc0948e401d (diff)
* cygheap.h (shared_prefix): De-const.
(shared_prefix_buf): Add static buffer for shared prefix to avoid additional allocation. * cygheap.cc (cygheap_init): Set cygheap->shared_prefix to cygheap->shared_prefix_buf and strcpy.
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r--winsup/cygwin/cygheap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h
index 937230554..3ac43ba2d 100644
--- a/winsup/cygwin/cygheap.h
+++ b/winsup/cygwin/cygheap.h
@@ -279,7 +279,8 @@ struct init_cygheap
cwdstuff cwd;
dtable fdtab;
LUID luid[SE_NUM_PRIVS];
- const char *shared_prefix;
+ char *shared_prefix;
+ char shared_prefix_buf[8];
#ifdef DEBUGGING
cygheap_debug debug;
#endif