Skip to content

Commit bc40350

Browse files
committed
[+] fix
1 parent 45640f0 commit bc40350

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

includes/ft_nmap.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: ale-batt <[email protected]> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2017/03/14 18:17:35 by ale-batt #+# #+# */
9-
/* Updated: 2017/03/31 18:17:33 by ale-batt ### ########.fr */
9+
/* Updated: 2017/08/02 17:34:46 by ale-batt ### ########.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -57,7 +57,9 @@ void *listener(void *ptr);
5757
void get_local_ip(char *buffer);
5858
char *hostname_to_ip(const char *hostname);
5959
u_short csum(u_short *ptr, int nbytes);
60-
const char *port_to_str(int port)
60+
const char *port_to_str(int port);
61+
62+
int get_port_status(t_port *port);
6163

6264
enum e_tcp_type tcp_to_enum(struct tcphdr *tcph);
6365

sources/print.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: ale-batt <[email protected]> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2017/03/23 15:31:08 by ale-batt #+# #+# */
9-
/* Updated: 2017/03/31 18:21:54 by ale-batt ### ########.fr */
9+
/* Updated: 2017/08/02 17:36:48 by ale-batt ### ########.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -81,7 +81,6 @@ void print_port_lst(t_list *port_lst)
8181
t_list *tmp;
8282
t_port *port;
8383

84-
ft_bzero(state, sizeof(state));
8584
tmp = port_lst;
8685
puts("-----------------------------------------------------------------");
8786
printf("Port | Status | Result | Service\n");

0 commit comments

Comments
 (0)