Define __bounded__ to fix the gcc build. While there, raise WARNS.

This commit is contained in:
Dag-Erling Smørgrav 2016-03-11 11:38:31 +00:00
parent 9bb18677ba
commit e7c246c5f1
2 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,6 @@ LIB= pam_ssh
MAN= pam_ssh.8
SRCS= pam_ssh.c
WARNS?= 3
CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
SRCS+= ssh_namespace.h

View File

@ -57,6 +57,7 @@ __FBSDID("$FreeBSD$");
#include <openssl/evp.h>
#define __bounded__(x, y, z)
#include "key.h"
#include "buffer.h"
#include "authfd.h"
@ -84,7 +85,9 @@ static const char *pam_ssh_keyfiles[] = {
};
static const char *pam_ssh_agent = "/usr/bin/ssh-agent";
static char *const pam_ssh_agent_argv[] = { "ssh_agent", "-s", NULL };
static char str_ssh_agent[] = "ssh-agent";
static char str_dash_s[] = "-s";
static char *const pam_ssh_agent_argv[] = { str_ssh_agent, str_dash_s, NULL };
static char *const pam_ssh_agent_envp[] = { NULL };
/*