Skip to content

Commit

Permalink
Code formatting & Typo error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MedourMehdi committed Sep 3, 2024
1 parent e2cf9a2 commit 334203f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion socket/if_freenameindex.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

__typeof__(if_freenameindex) __if_freenameindex;

void __if_freenameindex(struct if_nameindex *idx)
void
__if_freenameindex(struct if_nameindex *idx)
{
free(idx);
}
Expand Down
2 changes: 1 addition & 1 deletion socket/if_indextoname.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__typeof__(if_indextoname) __if_indextoname;

char *
char*
__if_indextoname(unsigned short index, char name[IF_NAMESIZE])
{
struct ifreq ifr;
Expand Down
3 changes: 2 additions & 1 deletion socket/if_nameindex.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@

__typeof__(if_nameindex) __if_nameindex;

struct if_nameindex *__if_nameindex (void)
struct if_nameindex*
__if_nameindex (void)
{
struct ifaddrs *ifaddrs, *ifa;
unsigned int ni;
Expand Down

0 comments on commit 334203f

Please sign in to comment.