From cc9a6aa8e74e0bed575ce0066670b54d378f402c Mon Sep 17 00:00:00 2001 From: Steven E Wright Date: Tue, 6 Dec 2016 10:45:23 -0800 Subject: [PATCH 1/2] Don't assume a 32-bit build for the DIAL client. --- client/makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/makefile b/client/makefile index 68cf150..f019419 100644 --- a/client/makefile +++ b/client/makefile @@ -8,7 +8,7 @@ OBJS := main.cpp DialServer.cpp DialDiscovery.cpp DialConformance.cpp DialClient # You may not need all these libraries. This example uses a build of curl that needs crypto, ssl, cares, and zlib dialclient: $(OBJS) ${includes} - $(CC) -Wall -Werror -g $(OBJS) $(INCLUDES) $(LDFLAGS) -ldl -lpthread -lcurl -lz -lcrypto -lssl -lcares -m32 -o dialclient + $(CC) -Wall -Werror -g $(OBJS) $(INCLUDES) $(LDFLAGS) -ldl -lpthread -lcurl -lz -lcrypto -lssl -lcares -o dialclient clean: rm -f *.o dialclient From 4a3cd27df2c272a5dfb6c48c168287a8abb138d4 Mon Sep 17 00:00:00 2001 From: Steven E Wright Date: Tue, 6 Dec 2016 10:48:48 -0800 Subject: [PATCH 2/2] Fixes incorrect format specifier. --- client/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.cpp b/client/main.cpp index 481a23d..8959ecd 100644 --- a/client/main.cpp +++ b/client/main.cpp @@ -62,7 +62,7 @@ static void printServerList( vector list ) (*it)->getUuid( uuid ); macAddr =(*it)->getMacAddress(); wolTimeOut =(*it)->getWakeOnLanTimeout(); - printf("%Zu: Server IP[%s] UUID[%s] FriendlyName[%s] MacAddress[%s] WakeOnLanTimeout[%d]\n", + printf("%d: Server IP[%s] UUID[%s] FriendlyName[%s] MacAddress[%s] WakeOnLanTimeout[%d]\n", i+1, (*it)->getIpAddress().c_str(), uuid.c_str(), name.c_str(), macAddr.c_str(), wolTimeOut); }