mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
pam: Add str_equal() helper to copy/paste header
This commit is contained in:
@ -28,6 +28,15 @@
|
|||||||
|
|
||||||
#define GNUC_UNUSED __attribute__((__unused__))
|
#define GNUC_UNUSED __attribute__((__unused__))
|
||||||
|
|
||||||
|
static bool str_equal (const char *a, const char *b)
|
||||||
|
{
|
||||||
|
if (a == NULL && b == NULL)
|
||||||
|
return true;
|
||||||
|
if (a == NULL || b == NULL)
|
||||||
|
return false;
|
||||||
|
return (strcmp (a, b) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
const char *dbus_name;
|
const char *dbus_name;
|
||||||
const char *place_str_generic;
|
const char *place_str_generic;
|
||||||
|
|||||||
Reference in New Issue
Block a user