From 5199a0cefb6facbedf406fd3a141dfe09ffab68b Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Wed, 26 Mar 2025 11:14:50 -0400 Subject: pk.h: fix compiler warnings and errors --- pkuuid.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pkuuid.h') diff --git a/pkuuid.h b/pkuuid.h index 30d4a24..8639e87 100644 --- a/pkuuid.h +++ b/pkuuid.h @@ -25,8 +25,8 @@ bool pk_uuid_equals(struct pk_uuid lhs, struct pk_uuid rhs); #include std::ostream& operator<<(std::ostream &o, const struct pk_uuid& uuid); std::istream& operator>>(std::istream &i, struct pk_uuid& uuid); -bool operator==(const pk_uuid &lhs, const pk_uuid &rhs) { return pk_uuid_equals(lhs, rhs); } -bool operator!=(const pk_uuid &lhs, const pk_uuid &rhs) { return !pk_uuid_equals(lhs, rhs); } +bool operator==(const pk_uuid &lhs, const pk_uuid &rhs); +bool operator!=(const pk_uuid &lhs, const pk_uuid &rhs); #endif #endif /* PK_UUID_H */ @@ -210,6 +210,11 @@ err_out: uuid = pk_uuid_zed; return i; } + +bool operator==(const pk_uuid &lhs, const pk_uuid &rhs) { return pk_uuid_equals(lhs, rhs); } + +bool operator!=(const pk_uuid &lhs, const pk_uuid &rhs) { return !pk_uuid_equals(lhs, rhs); } + #endif #endif -- cgit v1.2.3