* libselinux/getpeercon/compiler warning on 64bit Archs
@ 2004-01-28 9:41 Thorsten Kukuk
2004-01-28 15:55 ` Stephen Smalley
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Kukuk @ 2004-01-28 9:41 UTC (permalink / raw)
To: selinux
Hi,
On 64bit architectures, I get the follwoing compiler warnings:
getpeercon.c:26: warning: passing arg 5 of `getsockopt' from incompatible pointer type
getpeercon.c:36: warning: passing arg 5 of `getsockopt' from incompatible pointer type
The fix is simple, the variable "size" in getpeercon() should be from
type "socklen_t", not "ssize_t".
Thorsten
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de
SuSE Linux AG Maxfeldstr. 5 D-90409 Nuernberg
--------------------------------------------------------------------
Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: libselinux/getpeercon/compiler warning on 64bit Archs
2004-01-28 9:41 libselinux/getpeercon/compiler warning on 64bit Archs Thorsten Kukuk
@ 2004-01-28 15:55 ` Stephen Smalley
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2004-01-28 15:55 UTC (permalink / raw)
To: Thorsten Kukuk; +Cc: selinux
On Wed, 2004-01-28 at 04:41, Thorsten Kukuk wrote:
> Hi,
>
> On 64bit architectures, I get the follwoing compiler warnings:
>
> getpeercon.c:26: warning: passing arg 5 of `getsockopt' from incompatible pointer type
> getpeercon.c:36: warning: passing arg 5 of `getsockopt' from incompatible pointer type
>
> The fix is simple, the variable "size" in getpeercon() should be from
> type "socklen_t", not "ssize_t".
Thanks, we'll fix this.
--
Stephen Smalley <sds@epoch.ncsc.mil>
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-28 15:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-28 9:41 libselinux/getpeercon/compiler warning on 64bit Archs Thorsten Kukuk
2004-01-28 15:55 ` Stephen Smalley
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.