rp

simple email tools
git clone https://git.parazyd.org/rp
Log | Files | Refs | README | LICENSE

commit 6fa2dc469a805e2189a4ffc468260f5b1320e9b7
parent 84deac9c1fb49d742aa0b8877fee60c34b5b5855
Author: parazyd <parazyd@dyne.org>
Date:   Thu,  1 Mar 2018 01:08:24 +0100

bzero(3) is deprecated.

Diffstat:
Mconfig.mk | 4+---
Mnet.c | 3++-
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/config.mk b/config.mk @@ -5,10 +5,8 @@ PREFIX = /usr/local SHAREPREFIX = $(PREFIX)/share/$(NAME) MANPREFIX = $(PREFIX)/share/man -CFLAGS = -O2 -Wall -pedantic -std=gnu99 +CFLAGS = -O2 -Wall -pedantic LDFLAGS = -static -s -lssl -lcrypto .c.o: $(CC) $(CFLAGS) -c $< - -CC = cc diff --git a/net.c b/net.c @@ -71,7 +71,8 @@ int sslfpr(net_t *net) { struct addrinfo hints, *ai, *rp; - bzero(&hints, sizeof(hints)); + /* bzero(&hints, sizeof(hints)); */ + memset(&hints, 0, sizeof(hints)); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; hints.ai_protocol = IPPROTO_TCP;