The header files are usually based on code from lib/. This commit copies relevant license headers from lib/ to include/ to keep things consistent. The very generic things (e.g. MBR definitions) are always public domain. Fixes: https://github.com/util-linux/util-linux/issues/2010 Signed-off-by: Karel Zak <kzak@redhat.com>
17 lines
380 B
C
17 lines
380 B
C
/*
|
|
* No copyright is claimed. This code is in the public domain; do with
|
|
* it what you wish.
|
|
*/
|
|
#ifndef UTIL_LINUX_RPMATCH_H
|
|
#define UTIL_LINUX_RPMATCH_H
|
|
|
|
#ifndef HAVE_RPMATCH
|
|
#define rpmatch(r) \
|
|
(*r == 'y' || *r == 'Y' ? 1 : *r == 'n' || *r == 'N' ? 0 : -1)
|
|
#endif
|
|
|
|
#define RPMATCH_YES 1
|
|
#define RPMATCH_NO 0
|
|
#define RPMATCH_INVALID -1
|
|
|
|
#endif /* UTIL_LINUX_RPMATCH_H */
|