1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

* sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):

Avoid warning by using may_alias attribute on ptrhack.
This commit is contained in:
Ulrich Drepper
2009-04-26 18:06:47 +00:00
parent 4ec77f72fe
commit f521be31b9
13 changed files with 83 additions and 41 deletions

View File

@ -90,9 +90,6 @@ __vstrfmon_l (char *s, size_t maxsize, __locale_t loc, const char *format,
{
struct locale_data *current = loc->__locales[LC_MONETARY];
_IO_strfile f;
#ifdef _IO_MTSAFE_IO
_IO_lock_t lock;
#endif
struct printf_info info;
char *dest; /* Pointer so copy the output. */
const char *fmt; /* Pointer that walks through format. */
@ -517,11 +514,11 @@ __vstrfmon_l (char *s, size_t maxsize, __locale_t loc, const char *format,
/* Print the number. */
#ifdef _IO_MTSAFE_IO
f._sbf._f._lock = &lock;
f._sbf._f._lock = NULL;
#endif
INTUSE(_IO_init) ((_IO_FILE *) &f, 0);
_IO_JUMPS ((struct _IO_FILE_plus *) &f) = &_IO_str_jumps;
INTUSE(_IO_str_init_static) ((_IO_strfile *) &f, dest,
INTUSE(_IO_init) (&f._sbf._f, 0);
_IO_JUMPS (&f._sbf) = &_IO_str_jumps;
INTUSE(_IO_str_init_static) (&f, dest,
(s + maxsize) - dest, dest);
/* We clear the last available byte so we can find out whether
the numeric representation is too long. */
@ -537,7 +534,7 @@ __vstrfmon_l (char *s, size_t maxsize, __locale_t loc, const char *format,
info.extra = 1; /* This means use values from LC_MONETARY. */
ptr = &fpnum;
done = __printf_fp ((FILE *) &f, &info, &ptr);
done = __printf_fp (&f._sbf._f, &info, &ptr);
if (done < 0)
return -1;