Skip to content

Commit

Permalink
Fix definition of sockaddr_storage
Browse files Browse the repository at this point in the history
It was supposed to be 128 bytes, but actually was 126

Unused currently in mintlib itself.
  • Loading branch information
th-otto committed Jul 2, 2024
1 parent 95101ce commit 1fcfd35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/bits/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ struct sockaddr
exception of AF_UNIX). We reserve 128 bytes. */
#define __ss_aligntype unsigned long int
#define _SS_SIZE 128
#define _SS_PADSIZE (_SS_SIZE - (2 * sizeof (__ss_aligntype)))
#define _SS_PADSIZE (_SS_SIZE - __SOCKADDR_COMMON_SIZE - sizeof (__ss_aligntype))

struct sockaddr_storage
{
Expand Down

0 comments on commit 1fcfd35

Please sign in to comment.