I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit cf7be2d6 authored by mpc's avatar mpc Committed by zzz
Browse files

Fixed stupid bug when pinging multiple hosts

parent 59873291
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ LIBS = -lsam
all: warhammer-dgram
warhammer-dgram:
warhammer-dgram: warhammer-dgram.c
$(CC) $(CFLAGS) -o warhammer-dgram.o -c warhammer-dgram.c
$(CC) $(CFLAGS) -o warhammer-dgram warhammer-dgram.o $(LIBS)
......
......@@ -7,6 +7,7 @@
#
CC = gcc
INSTALL = install
#
# Flags
......@@ -22,10 +23,13 @@ LIBS = -lsam
all: i2p-ping
i2p-ping:
i2p-ping: i2p-ping.c
$(CC) $(CFLAGS) -o i2p-ping.o -c i2p-ping.c
$(CC) $(CFLAGS) -o i2p-ping i2p-ping.o $(LIBS)
install: i2p-ping
$(INSTALL) i2p-ping $(HOME)/bin
#
# Cleanup rules
#
......
......@@ -88,7 +88,7 @@ int main(int argc, char* argv[])
quiet = true;
break;
case 'v': /* version */
puts("$Id: i2p-ping.c,v 1.1 2004/07/31 21:38:15 mpc Exp $");
puts("$Id: i2p-ping.c,v 1.2 2004/07/31 22:20:22 mpc Exp $");
puts("Copyright (c) 2004, Matthew P. Cashdollar <mpc@innographx.com>");
break;
case '?':
......@@ -132,6 +132,7 @@ int main(int argc, char* argv[])
while (!gotdest) /* just wait for the naming lookup to complete */
sam_read_buffer(session);
gotdest = false;
for (int i = 0; i < count; ++i) {
time_t start = time(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment