Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a few consts

  • Loading branch information...
commit a6c5dfc4f2ea94a3c1dc3c09af32a34f1c6175d5 1 parent 877fea1
John Brochue Arke64 authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 Socket.c
  2. +2 −2 Socket.h
4 Socket.c
View
@@ -29,7 +29,7 @@ typedef struct AsyncSocketEntry AsyncSocketEntry;
static struct CallbackEntry {
SAL_Socket_ReadCallback Callback;
- const void* State;
+ void* State;
};
typedef struct CallbackEntry CallbackEntry;
@@ -341,7 +341,7 @@ boolean SAL_Socket_Write(SAL_Socket socket, const uint8* const toWrite, const ui
*
* @warning The buffer passed to @a callback is the internal buffer. Do not reference it outside out the callback.
*/
-void SAL_Socket_RegisterReadCallback(SAL_Socket socket, SAL_Socket_ReadCallback callback, const void* const state) {
+void SAL_Socket_RegisterReadCallback(SAL_Socket socket, SAL_Socket_ReadCallback callback, void* const state) {
AsyncSocketEntry* socketEntry;
CallbackEntry* callbackEntry;
4 Socket.h
View
@@ -10,7 +10,7 @@
typedef void* SAL_Socket;
#endif
-typedef void (*SAL_Socket_ReadCallback)(const uint8* const buffer, const uint32 length, const void* state);
+typedef void (*SAL_Socket_ReadCallback)(const uint8* const buffer, const uint32 length, void* const state);
public SAL_Socket SAL_Socket_Connect(const int8* const address, const uint16 port);
public SAL_Socket SAL_Socket_ConnectIP(const uint32 ip, const uint16 port);
@@ -19,7 +19,7 @@ public SAL_Socket SAL_Socket_Accept(SAL_Socket listener, uint32* const acceptedA
public void SAL_Socket_Close(SAL_Socket socket);
public uint32 SAL_Socket_Read(SAL_Socket socket, uint8* const buffer, const uint32 bufferSize);
public boolean SAL_Socket_Write(SAL_Socket socket, const uint8* const toWrite, const uint32 writeAmount);
-public void SAL_Socket_RegisterReadCallback(SAL_Socket socket, SAL_Socket_ReadCallback callback, const void* const state);
+public void SAL_Socket_RegisterReadCallback(SAL_Socket socket, SAL_Socket_ReadCallback callback, void* const state);
public void SAL_Socket_UnregisterSocketCallbacks(SAL_Socket socket);
#endif
Please sign in to comment.
Something went wrong with that request. Please try again.