mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 00:38:06 +08:00
* spinlock.h (ULONG): Replace LONG operator with ULONG to accommodate
the fact that CURR_SHARED_MAGIC and USER_SHARED_MAGIC are unsigned values. * shared.cc (shared_info::initialize): Drop explicit cast here.
This commit is contained in:
parent
7dfacd3869
commit
c20a5e603a
@ -1,3 +1,10 @@
|
|||||||
|
2013-05-22 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* spinlock.h (ULONG): Replace LONG operator with ULONG to accommodate
|
||||||
|
the fact that CURR_SHARED_MAGIC and USER_SHARED_MAGIC are unsigned
|
||||||
|
values.
|
||||||
|
* shared.cc (shared_info::initialize): Drop explicit cast here.
|
||||||
|
|
||||||
2013-05-21 Corinna Vinschen <corinna@vinschen.de>
|
2013-05-21 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* Makefile.in (DLL_OFILES): Add arc4random.o.
|
* Makefile.in (DLL_OFILES): Add arc4random.o.
|
||||||
|
@ -335,7 +335,7 @@ shared_info::initialize ()
|
|||||||
debug_printf ("Installation root: <%W> key: <%S>",
|
debug_printf ("Installation root: <%W> key: <%S>",
|
||||||
cygheap->installation_root, &cygheap->installation_key);
|
cygheap->installation_root, &cygheap->installation_key);
|
||||||
}
|
}
|
||||||
else if (sversion != (LONG) CURR_SHARED_MAGIC)
|
else if (sversion != CURR_SHARED_MAGIC)
|
||||||
sversion.multiple_cygwin_problem ("system shared memory version",
|
sversion.multiple_cygwin_problem ("system shared memory version",
|
||||||
sversion, CURR_SHARED_MAGIC);
|
sversion, CURR_SHARED_MAGIC);
|
||||||
else if (cb != sizeof (*this))
|
else if (cb != sizeof (*this))
|
||||||
|
@ -67,7 +67,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
~spinlock () {done (setto);}
|
~spinlock () {done (setto);}
|
||||||
operator LONG () const {return val;}
|
operator ULONG () const {return (ULONG) val;}
|
||||||
/* FIXME: This should be handled in a more general fashion, probably by
|
/* FIXME: This should be handled in a more general fashion, probably by
|
||||||
establishing a linked list of spinlocks which are freed on process exit. */
|
establishing a linked list of spinlocks which are freed on process exit. */
|
||||||
void multiple_cygwin_problem (const char *w, unsigned m, unsigned v)
|
void multiple_cygwin_problem (const char *w, unsigned m, unsigned v)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user