Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset fdfa2e1 in mainline


Ignore:
Timestamp:
2013-09-10T21:54:59Z (8 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master
Children:
bd0e6a1
Parents:
d08ba7fc
Message:

Make data parameter of send constant

Location:
uspace/lib/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/net/socket_client.c

    rd08ba7fc rfdfa2e1  
    923923 *                      message.
    924924 */
    925 int send(int socket_id, void *data, size_t datalength, int flags)
     925int send(int socket_id, const void *data, size_t datalength, int flags)
    926926{
    927927        /* Without the address */
  • uspace/lib/c/include/net/socket.h

    rd08ba7fc rfdfa2e1  
    5757extern int connect(int, const struct sockaddr *, socklen_t);
    5858extern int closesocket(int);
    59 extern int send(int, void *, size_t, int);
     59extern int send(int, const void *, size_t, int);
    6060extern int sendto(int, const void *, size_t, int, const struct sockaddr *,
    6161    socklen_t);
Note: See TracChangeset for help on using the changeset viewer.