aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-07-12 14:31:16 -0800
committerDavid M. Syzdek <david@syzdek.net>2022-07-12 14:31:16 -0800
commita0e80858b795172e2cc5864940b94c0b14ccc5c1 (patch)
tree9d27c6170e07c3c2884afdc4183392e59b017902
parent95f6e57e77cc3a90e25d54c259a28d373b20575d (diff)
downloadtinytac-a0e80858b795172e2cc5864940b94c0b14ccc5c1.tar.gz
tinytac-a0e80858b795172e2cc5864940b94c0b14ccc5c1.tar.bz2
tinytac-a0e80858b795172e2cc5864940b94c0b14ccc5c1.tar.xz
tinytac-a0e80858b795172e2cc5864940b94c0b14ccc5c1.zip
tacacs-example: resolving compiler warnings
-rw-r--r--examples/tacacs-example.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/tacacs-example.c b/examples/tacacs-example.c
index 1f08e33..87a0395 100644
--- a/examples/tacacs-example.c
+++ b/examples/tacacs-example.c
@@ -56,6 +56,7 @@
56#include <sys/time.h> 56#include <sys/time.h>
57#include <pwd.h> 57#include <pwd.h>
58#include <unistd.h> 58#include <unistd.h>
59#include <signal.h>
59 60
60#ifdef HAVE_TERMIOS_H 61#ifdef HAVE_TERMIOS_H
61# include <termios.h> 62# include <termios.h>
@@ -94,6 +95,9 @@
94#define MY_DEBUGMORE 0x0008U 95#define MY_DEBUGMORE 0x0008U
95 96
96 97
98#define MY_PASSWORD_LEN 512
99
100
97#ifndef SO_NOSIGPIPE 101#ifndef SO_NOSIGPIPE
98# define SO_NOSIGPIPE SO_REUSEADDR 102# define SO_NOSIGPIPE SO_REUSEADDR
99#endif 103#endif
@@ -507,7 +511,7 @@ my_cmd_authen(
507 size_t port_len; 511 size_t port_len;
508 size_t rem_addr_len; 512 size_t rem_addr_len;
509 size_t data_len; 513 size_t data_len;
510 char pass[_PASSWORD_LEN+1]; 514 char pass[MY_PASSWORD_LEN+1];
511 const char * msg; 515 const char * msg;
512 char * str; 516 char * str;
513 517