diff options
author | Christopher Faylor <me@cgf.cx> | 2008-12-13 21:05:31 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2008-12-13 21:05:31 +0000 |
commit | 9fe25af7a67193be17ccb58191694f504a805cf0 (patch) | |
tree | 569ac5bd2b7eea81c2b17ced60751b6d128f59e6 /winsup/cygwin/gentls_offsets | |
parent | a1631dba6c9dfa4b64927d5e8750d6b65e84de8c (diff) | |
download | cygnal-9fe25af7a67193be17ccb58191694f504a805cf0.tar.gz cygnal-9fe25af7a67193be17ccb58191694f504a805cf0.tar.bz2 cygnal-9fe25af7a67193be17ccb58191694f504a805cf0.zip |
* cygheap.cc (cygheap_user::~cygheap_user): Remove unneeded if 0'ed code.
* fhandler_registry.cc (fhandler_registry::exists): Recode goto as if/else to
avoid a gcc4 compiler warning.
(fhandler_registry::open): Ditto. Use one goto rather than two.
* gentls_offsets: Fix compiler warning in generated output.
* tlsoffsets.h: Regenerate.
* mount.cc (fillout_mntent): slashify native paths returned via getmntent.
Diffstat (limited to 'winsup/cygwin/gentls_offsets')
-rwxr-xr-x | winsup/cygwin/gentls_offsets | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/gentls_offsets b/winsup/cygwin/gentls_offsets index 0ab6b64ab..2c96487d4 100755 --- a/winsup/cygwin/gentls_offsets +++ b/winsup/cygwin/gentls_offsets @@ -56,7 +56,7 @@ main(int argc, char **argv) { $struct *foo; # define foo_beg ((char *) foo) -# define offset(f) (-CYGTLS_PADSIZE + ((char *) &(foo->f)) - foo_beg) +# define offset(f) ((int) (((char *) &(foo->f)) - foo_beg) - CYGTLS_PADSIZE) # define poffset(f) (((char *) &(foo->f)) - ((char *) foo)) EOF print TMP 'puts ("//;# autogenerated: Do not edit.\n");', "\n\n"; |