1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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:
|