Skip to content

Commit

Permalink
LibC: move in_addr and sockaddr_in to netinet/in.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs authored and awesomekling committed Jan 2, 2020
1 parent 93e1728 commit f22322a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 11 additions & 0 deletions Libraries/LibC/netinet/in.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,15 @@ in_addr_t inet_addr(const char*);

#define IP_TTL 2

struct in_addr {
uint32_t s_addr;
};

struct sockaddr_in {
uint16_t sin_family;
uint16_t sin_port;
struct in_addr sin_addr;
char sin_zero[8];
};

__END_DECLS
11 changes: 0 additions & 11 deletions Libraries/LibC/sys/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,6 @@ struct sockaddr {
char sa_data[14];
};

struct in_addr {
uint32_t s_addr;
};

struct sockaddr_in {
uint16_t sin_family;
uint16_t sin_port;
struct in_addr sin_addr;
char sin_zero[8];
};

struct ucred {
pid_t pid;
uid_t uid;
Expand Down

0 comments on commit f22322a

Please sign in to comment.