diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2024-01-24 21:38:18 +0100 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2024-01-27 19:01:19 +0100 | 
| commit | 80b6787e272388e781695ae17ae26b4c7148d5fc (patch) | |
| tree | 19a11073c280375e66d2de09e74dc37343f2407c /bfdd/control.c | |
| parent | 0d5a2497ca56d98e9af9d337a9b9d208e8b3bfcb (diff) | |
build: nuke `BFDD_CONTROL_SOCKET`
This just unnecessarily complicates things by involving autoconf.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bfdd/control.c')
| -rw-r--r-- | bfdd/control.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/bfdd/control.c b/bfdd/control.c index 6ff86f2913..98fd813ef7 100644 --- a/bfdd/control.c +++ b/bfdd/control.c @@ -95,11 +95,11 @@ int control_init(const char *path)  	mode_t umval;  	struct sockaddr_un sun_ = {  		.sun_family = AF_UNIX, -		.sun_path = BFDD_CONTROL_SOCKET,  	}; -	if (path) -		strlcpy(sun_.sun_path, path, sizeof(sun_.sun_path)); +	assert(path); + +	strlcpy(sun_.sun_path, path, sizeof(sun_.sun_path));  	/* Remove previously created sockets. */  	unlink(sun_.sun_path);  | 
