diff options
Diffstat (limited to 'kde-base/kdm/files/kdm-3.5.3-strict-aliasing.patch')
-rw-r--r-- | kde-base/kdm/files/kdm-3.5.3-strict-aliasing.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/kde-base/kdm/files/kdm-3.5.3-strict-aliasing.patch b/kde-base/kdm/files/kdm-3.5.3-strict-aliasing.patch new file mode 100644 index 000000000000..fcdb060f5d25 --- /dev/null +++ b/kde-base/kdm/files/kdm-3.5.3-strict-aliasing.patch @@ -0,0 +1,38 @@ +Index: kdebase-3.5.3/kdm/backend/Makefile.am +=================================================================== +--- kdebase-3.5.3.orig/kdm/backend/Makefile.am ++++ kdebase-3.5.3/kdm/backend/Makefile.am +@@ -7,6 +7,7 @@ LDADD = $(LIB_X11) -lXau $(LIBXDMCP) $(P + $(LIBUCB) $(LIBUTIL) $(LIBPOSIX4) + + bin_PROGRAMS = kdm ++kdm_CFLAGS = -fno-strict-aliasing + kdm_SOURCES = \ + access.c \ + auth.c \ +Index: kdebase-3.5.3/kdm/backend/xdmcp.c +=================================================================== +--- kdebase-3.5.3.orig/kdm/backend/xdmcp.c ++++ kdebase-3.5.3/kdm/backend/xdmcp.c +@@ -160,7 +160,7 @@ all_query_respond( struct sockaddr *from + int family; + int length; + +- family = ConvertAddr( (XdmcpNetaddr)from, &length, (char **)&(addr.data) ); ++ family = ConvertAddr( (XdmcpNetaddr)from, &length, &(addr.data) ); + addr.length = length; /* convert int to short */ + Debug( "all_query_respond: conntype=%d, addr=%02[*:hhx\n", + family, addr.length, addr.data ); +Index: kdebase-3.5.3/kdm/kfrontend/kdm_config.c +=================================================================== +--- kdebase-3.5.3.orig/kdm/kfrontend/kdm_config.c ++++ kdebase-3.5.3/kdm/kfrontend/kdm_config.c +@@ -733,7 +733,7 @@ CvtValue( Ent *et, Value *retval, int va + } + } + retval->ptr = 0; +- if (sscanf( buf, "%li", (long *)&retval->ptr ) != 1) ++ if (sscanf( buf, "%li", &retval->ptr ) != 1) + return "integer"; + return 0; + case C_TYPE_STR: |