Projects
Multimedia
libdvdread3
libdvdread-strict-aliasing.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libdvdread-strict-aliasing.patch of Package libdvdread3 (Revision 5)
Currently displaying revision
5
,
Show latest
--- dvdread/md5.c | 6 ------ dvdread/nav_print.c | 5 ++++- 2 files changed, 4 insertions(+), 7 deletions(-) --- a/dvdread/md5.c +++ b/dvdread/md5.c @@ -27,14 +27,8 @@ #include <sys/types.h> -#if STDC_HEADERS || defined _LIBC # include <stdlib.h> # include <string.h> -#else -# ifndef HAVE_MEMCPY -# define memcpy(d, s, n) bcopy ((s), (d), (n)) -# endif -#endif #include "md5.h" //#include "unlocked-io.h" --- a/dvdread/nav_print.c +++ b/dvdread/nav_print.c @@ -27,6 +27,7 @@ #include "config.h" #include <stdio.h> +#include <string.h> #if defined(HAVE_INTTYPES_H) #include <inttypes.h> @@ -67,12 +68,14 @@ static void navPrint_PCI_GI(pci_gi_t *pci_gi) { + unsigned int vobu_uop_ctl; int i; + memcpy(&vobu_uop_ctl, &pci_gi->vobu_uop_ctl, sizeof(vobu_uop_ctl)); printf("pci_gi:\n"); printf("nv_pck_lbn 0x%08x\n", pci_gi->nv_pck_lbn); printf("vobu_cat 0x%04x\n", pci_gi->vobu_cat); - printf("vobu_uop_ctl 0x%08x\n", *(uint32_t*)&pci_gi->vobu_uop_ctl); + printf("vobu_uop_ctl 0x%08x\n", vobu_uop_ctl); printf("vobu_s_ptm 0x%08x\n", pci_gi->vobu_s_ptm); printf("vobu_e_ptm 0x%08x\n", pci_gi->vobu_e_ptm); printf("vobu_se_e_ptm 0x%08x\n", pci_gi->vobu_se_e_ptm);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.