Mark help as static+dead. Don't use __attribute__.

XXX needs a lot more static love. Uses mktemp and doesn't link.
This commit is contained in:
joerg 2017-02-09 20:37:58 +00:00
parent c867a9ddc9
commit d3857c1992
2 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: netcat.c,v 1.3 2017/02/09 17:27:30 christos Exp $");
__RCSID("$NetBSD: netcat.c,v 1.4 2017/02/09 20:37:58 joerg Exp $");
/*
* Re-written nc(1) for OpenBSD. Original implementation by
@ -129,11 +129,11 @@ int minttl = -1;
void atelnet(int, unsigned char *, unsigned int);
void build_ports(char *);
void help(void);
static void help(void) __dead;
int local_listen(char *, char *, struct addrinfo);
struct tls;
void readwrite(int, struct tls *);
void fdpass(int nfd) __attribute__((noreturn));
void fdpass(int nfd) __dead;
int remote_connect(const char *, const char *, struct addrinfo);
int timeout_connect(int, const struct sockaddr *, socklen_t);
int socks_connect(const char *, const char *, struct addrinfo,

View File

@ -25,7 +25,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: socks.c,v 1.2 2017/02/06 16:03:40 christos Exp $");
__RCSID("$NetBSD: socks.c,v 1.3 2017/02/09 20:37:58 joerg Exp $");
#include <sys/types.h>
#include <sys/socket.h>
@ -185,7 +185,7 @@ socks5_strerror(int e)
int
socks_connect(const char *host, const char *port,
struct addrinfo hints __attribute__ ((__unused__)),
struct addrinfo hints __unused,
const char *proxyhost, const char *proxyport, struct addrinfo proxyhints,
int socksv, const char *proxyuser)
{