From fd557f4d6c75f5b1da99562b597aa242d4a274ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 1 Oct 2006 17:52:36 +0000 Subject: [PATCH] Add ret16. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18185 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/gssmask/common.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/appl/gssmask/common.h b/appl/gssmask/common.h index eb92d286a..8b2ab6c83 100644 --- a/appl/gssmask/common.h +++ b/appl/gssmask/common.h @@ -42,6 +42,7 @@ #include #endif +#include #include #include #include @@ -54,6 +55,12 @@ krb5_error_code store_string(krb5_storage *, const char *); +#define ret16(_client, num) \ + do { \ + if (krb5_ret_int16((_client)->sock, &(num)) != 0) \ + errx(1, "krb5_ret_int16 " #num); \ + } while(0) + #define ret32(_client, num) \ do { \ if (krb5_ret_int32((_client)->sock, &(num)) != 0) \