Add ret16.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18185 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-01 17:52:36 +00:00
parent c667d17ea8
commit fd557f4d6c

View File

@@ -42,6 +42,7 @@
#include <sys/utsname.h>
#endif
#include <assert.h>
#include <krb5.h>
#include <gssapi.h>
#include <unistd.h>
@@ -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) \