Staging: comedi: Remove comedi_cmd typedef
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / staging / epl / SocketLinuxKernel.h
index c248a7831f237f7e7e2fe5ad41209a2de4a458c5..6e1d61989607ba64e7d6d6fa3877e063314daaeb 100644 (file)
 
   2006/08/25 d.k.:   start of the implementation
 
-
 ****************************************************************************/
 
-
 #ifndef _SOCKETLINUXKERNEL_H_
 #define _SOCKETLINUXKERNEL_H_
 
 #include <linux/net.h>
 #include <linux/in.h>
 
-
 //---------------------------------------------------------------------------
 // const defines
 //---------------------------------------------------------------------------
@@ -87,7 +84,7 @@
 // typedef
 //---------------------------------------------------------------------------
 
-typedef struct socketSOCKET;
+typedef struct socket *SOCKET;
 
 //---------------------------------------------------------------------------
 // function prototypes
@@ -97,12 +94,12 @@ int bind(SOCKET s, const struct sockaddr *addr, int addrlen);
 
 int closesocket(SOCKET s);
 
-int recvfrom(SOCKET s, char* buf, int len, int flags, struct sockaddr *from, int * fromlen);
+int recvfrom(SOCKET s, char *buf, int len, int flags, struct sockaddr *from,
+            int *fromlen);
 
-int sendto(SOCKET s, const char* buf, int len, int flags, const struct sockaddr *to, int tolen);
+int sendto(SOCKET s, const char *buf, int len, int flags,
+          const struct sockaddr *to, int tolen);
 
 SOCKET socket(int af, int type, int protocol);
 
-#endif  // #ifndef _SOCKETLINUXKERNEL_H_
-
-
+#endif // #ifndef _SOCKETLINUXKERNEL_H_