[Kde-print-devel] [Bug 116260] Compile failure of kdelibs with cups-1.2svn
Thiago Macieira
thiago at kde.org
Sun Nov 13 21:09:15 CET 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=116260
------- Additional Comments From thiago kde org 2005-11-13 21:09 -------
SVN commit 480212 by thiago:
Do not assume about the internals of struct sockaddr_in.
CCBUG:116260
M +1 -1 cups-util.c
--- branches/KDE/3.5/kdelibs/kdeprint/cups/cupsdconf2/cups-util.c #480211:480212
@ -442,7 +442,7 @
* See if we are accessing localhost...
*/
- if (ntohl(http->hostaddr.sin_addr.s_addr) != 0x7f000001 &&
+ if (ntohl(*(int*)&http->hostaddr.sin_addr) != 0x7f000001 &&
strcasecmp(http->hostname, "localhost") != 0)
return (0);
More information about the Kde-print-devel
mailing list