From 2b8090f173616fd48545c7e94e3f05a2eb3935a6 Mon Sep 17 00:00:00 2001 From: pirate sans barbe Date: Wed, 3 Mar 2021 06:05:58 -1000 Subject: [PATCH] stdin mode --- configure | 6 ++---- hydra.h | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 139c9bf..ae81322 100755 --- a/configure +++ b/configure @@ -17,12 +17,10 @@ if [ "$1" = "-h" -o "$1" = "--help" ]; then echo " --help this here" echo echo If the CC environment variable is set, this is used as the compiler for the configure tests. The default is \"gcc\" otherwise. - echo You can also set PKG_CONFIG if necessary. exit 0 fi test -z "$CC" && CC=gcc -test -z "$PKG_CONFIG" && PKG_CONFIG=pkg-config FHS="" SIXFOUR="" @@ -1307,9 +1305,9 @@ echo "Checking for smbclient (libsmbclient/libsmbclient.h) ..." if [ "X" = "X$XHYDRA_SUPPORT" ]; then echo "Checking for GUI req's (pkg-config/gtk+-2.0) ..." - XHYDRA_SUPPORT=`$PKG_CONFIG --help > /dev/null 2>&1 || echo disabled` + XHYDRA_SUPPORT=`pkg-config --help > /dev/null 2>&1 || echo disabled` if [ "X" = "X$XHYDRA_SUPPORT" ]; then - XHYDRA_SUPPORT=`$PKG_CONFIG --modversion gtk+-2.0 2> /dev/null` + XHYDRA_SUPPORT=`pkg-config --modversion gtk+-2.0 2> /dev/null` else XHYDRA_SUPPORT="" fi diff --git a/hydra.h b/hydra.h index f0a0253..31018dd 100644 --- a/hydra.h +++ b/hydra.h @@ -206,7 +206,8 @@ typedef struct { char *server; char *service; char bfg; - int8_t rainy; + int32_t read_stdin; + int32_t stdin_lines; int32_t skip_redo; } hydra_option;