Skip to contentSkip to conversation

libselinux/getpeercon/compiler warning on 64bit Archs

DISCUSSION Thorsten Kukuk 2 participants 2 messages Jan 28, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

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

Signature · 9 lines
Thorsten Kukuk       http://www.suse.de/~kukuk/        [email protected]
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 9 lines · Thorsten Kukuk

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.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.