shadow/lib/fields.h
Alejandro Colomar 8b3e9c3400 lib/fields.*: valid_field: Make sure that $2 is a string literal
and thus, nonnull.

Suggested-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-03 09:04:01 -05:00

21 lines
456 B
C

// SPDX-FileCopyrightText: 2025, Alejandro Colomar <alx@kernel.org>
// SPDX-License-Identifier: BSD-3-Clause
#ifndef _SHADOW_INCLUDE_LIB_FIELDS_H_
#define _SHADOW_INCLUDE_LIB_FIELDS_H_
#include <config.h>
#include <stddef.h>
#define valid_field(field, illegal) valid_field_(field, "" illegal "")
int valid_field_(const char *field, const char *illegal);
void change_field(char *buf, size_t maxsize, const char *prompt);
#endif // include guard