diff --git a/kdc/headers.h b/kdc/headers.h index b2e6db8c4..ce0fa2c41 100644 --- a/kdc/headers.h +++ b/kdc/headers.h @@ -93,5 +93,7 @@ #endif #define ALLOC(X) ((X) = malloc(sizeof(*(X)))) +#define ALLOC_SEQ(X, N) do { (X)->len = (N); \ +(X)->val = calloc((X)->len, sizeof(*(X)->val)); } while(0) #endif /* __HEADERS_H__ */