From 728fc5b2965f359ac276e584af8d6723a5b3b4e5 Mon Sep 17 00:00:00 2001 From: Jack Halford Date: Sun, 8 Oct 2017 14:37:05 +0200 Subject: [PATCH] norme --- ping/Makefile | 2 +- ping/includes/ping.h | 10 +++++----- ping/libft | 2 +- ping/srcs/ping.c | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ping/Makefile b/ping/Makefile index 57f53f08..9503eed4 100644 --- a/ping/Makefile +++ b/ping/Makefile @@ -6,7 +6,7 @@ # By: wescande +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2016/08/29 21:32:58 by wescande #+# #+# # -# Updated: 2017/04/22 19:26:34 by jhalford ### ########.fr # +# Updated: 2017/10/08 14:36:33 by jhalford ### ########.fr # # # # **************************************************************************** # diff --git a/ping/includes/ping.h b/ping/includes/ping.h index 62399797..590698e2 100644 --- a/ping/includes/ping.h +++ b/ping/includes/ping.h @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/04/22 14:10:24 by jhalford #+# #+# */ -/* Updated: 2017/04/22 15:52:07 by jhalford ### ########.fr */ +/* Updated: 2017/10/08 14:36:37 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ @@ -25,12 +25,12 @@ # include # include -#define PACKETSIZE 64 +# define PACKETSIZE 64 -struct s_packet +struct s_packet { - struct icmp hdr; - char msg[PACKETSIZE - sizeof(struct icmp)]; + struct icmp hdr; + char msg[PACKETSIZE - sizeof(struct icmp)]; }; #endif diff --git a/ping/libft b/ping/libft index 57475bda..0da748d1 160000 --- a/ping/libft +++ b/ping/libft @@ -1 +1 @@ -Subproject commit 57475bdafefca069981276b44dd8c5d8998b5a13 +Subproject commit 0da748d10513bbc70705998fb5ac914c1047c6dc diff --git a/ping/srcs/ping.c b/ping/srcs/ping.c index 0fa5105b..c3a45e2d 100644 --- a/ping/srcs/ping.c +++ b/ping/srcs/ping.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/04/22 14:10:24 by jhalford #+# #+# */ -/* Updated: 2017/10/08 14:26:15 by jhalford ### ########.fr */ +/* Updated: 2017/10/08 14:35:02 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ @@ -122,9 +122,9 @@ int main(int ac, char **av) result = resolve_host(av[1]); if (result->ai_canonname) printf("PING %s (%s): %i data bytes\n", - result->ai_canonname, g_domain, 64); + result->ai_canonname, g_domain, PACKETSIZE); else - printf("PING %s: %i data bytes\n", g_domain, 64); + printf("PING %s: %i data bytes\n", g_domain, PACKETSIZE); if (fork() == 0) { signal(SIGINT, stats_recap);