npm

Nihal's Password Manager (WIP)
git clone git://git.nihaljere.xyz/npm
Log | Files | Refs | README | LICENSE

commit 66476749c57cea2381193c4980c957d2fb0c735c
parent 37b44032b37ba62ec8e27911d0420240bffc5d54
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Thu,  7 Oct 2021 14:57:24 -0500

use _DEFAULT_SOURCE instead of _BSD_SOURCE

_BSD_SOURCE is deprecated in glibc 2.20

Diffstat:
Mnpm-agent.c | 2+-
Mnpmc.c | 2++
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/npm-agent.c b/npm-agent.c @@ -1,4 +1,4 @@ -#define _BSD_SOURCE +#define _DEFAULT_SOURCE /* npm-agent uses a simple socket protocol to receive and respond to requests: * a client sends a null-terminated path over a socket, with a maximum length diff --git a/npmc.c b/npmc.c @@ -1,3 +1,5 @@ +#define _DEFAULT_SOURCE + #include <limits.h> #include <stdint.h> #include <stdbool.h>