lkml.org 
[lkml]   [1996]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectc++ warning in linux/socket.h


This small patch allows avoiding a c++ warning in linux/socket.h (2.1.8)

--- socket.h.orig Tue Nov 12 13:47:54 1996
+++ socket.h Tue Nov 12 13:48:57 1996
@@ -68,7 +68,7 @@
if (ptr >= mhdr->msg_control + mhdr->msg_controllen)
return NULL;

- return ptr;
+ return (struct cmsghdr *) ptr;
}

/* Control Messages */
\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.044 / U:1.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site