summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <colomar.6.4.3@gmail.com>2020-03-26 14:06:27 +0100
committerAlejandro Colomar <colomar.6.4.3@gmail.com>2020-03-26 14:06:27 +0100
commitca6527dc631938292182aa8baf2fa0777642ea24 (patch)
tree85c00eaef8fcdd92ee87f07e8300ba81010fedbc
parent19e0459c636485f73a32c1d24350aa39b85292bc (diff)
-rw-r--r--rob/Makefile2
-rw-r--r--rob/rob.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/rob/Makefile b/rob/Makefile
index 2577fc0..81ebb5e 100644
--- a/rob/Makefile
+++ b/rob/Makefile
@@ -16,3 +16,5 @@ rob: rob.c
`pkg-config --static --libs libalx-telnet-tcp` \
`pkg-config --static --libs libalx-base`
+clean:
+ rm -f rob
diff --git a/rob/rob.c b/rob/rob.c
index ad9c505..7ef95f0 100644
--- a/rob/rob.c
+++ b/rob/rob.c
@@ -10,6 +10,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
@@ -19,7 +20,7 @@
#include <libalx/alx/robot/ur/ur.h>
#include <libalx/base/compiler/size.h>
#include <libalx/base/compiler/unused.h>
-#include <libalx/base/errno/error.h>
+#include <libalx/base/errno/perror.h>
#include <libalx/base/linux/membarrier.h>
#include <libalx/base/signal/sigpipe.h>
#include <libalx/base/signal/sigterm.h>