pam: Add str_equal() helper to copy/paste header

This commit is contained in:
Bastien Nocera
2020-01-14 15:18:12 +01:00
parent 0bdf801043
commit 8325d347d6

View File

@ -28,6 +28,15 @@
#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 {
const char *dbus_name;
const char *place_str_generic;