@@ -72,6 +72,7 @@ tags: $(SRC) | |||||
.PHONY: install | .PHONY: install | ||||
install: gpio | install: gpio | ||||
$Q echo "[Install]" | $Q echo "[Install]" | ||||
$Q mkdir -p $(DESTDIR)$(PREFIX)/bin | |||||
$Q cp gpio $(DESTDIR)$(PREFIX)/bin | $Q cp gpio $(DESTDIR)$(PREFIX)/bin | ||||
ifneq ($(WIRINGPI_SUID),0) | ifneq ($(WIRINGPI_SUID),0) | ||||
$Q chown root.root $(DESTDIR)$(PREFIX)/bin/gpio | $Q chown root.root $(DESTDIR)$(PREFIX)/bin/gpio | ||||
@@ -76,12 +76,12 @@ static int remoteReadline (int fd, char *buf, int max) | |||||
static char *getChallenge (int fd) | static char *getChallenge (int fd) | ||||
{ | { | ||||
static char buf [1024] ; | |||||
static char buf [512] ; | |||||
int num ; | int num ; | ||||
for (;;) | for (;;) | ||||
{ | { | ||||
if ((num = remoteReadline (fd, buf, 1023)) < 0) | |||||
if ((num = remoteReadline (fd, buf, 511)) < 0) | |||||
return NULL ; | return NULL ; | ||||
buf [num] = 0 ; | buf [num] = 0 ; | ||||
@@ -2256,10 +2256,6 @@ int wiringPiSetup (void) | |||||
int fd ; | int fd ; | ||||
int model, rev, mem, maker, overVolted ; | int model, rev, mem, maker, overVolted ; | ||||
// It's actually a fatal error to call any of the wiringPiSetup routines more than once, | |||||
// (you run out of file handles!) but I'm fed-up with the useless twats who email | |||||
// me bleating that there is a bug in my code, so screw-em. | |||||
if (wiringPiSetuped) | if (wiringPiSetuped) | ||||
return 0 ; | return 0 ; | ||||