X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=nss%2Fgr.c;h=8b336f9615bb4b0c200417240fa82f76ebb87166;hb=c6363eab83ca507ee1a566b5b98eefad61fbe8b3;hp=c49ef4799be15db6e4996b4c01042eb5965d8a75;hpb=839f07d7b3130efc613d7d3fa8ed71a7d8d5fd7f;p=nsscash%2Fnsscash.git diff --git a/nss/gr.c b/nss/gr.c index c49ef47..8b336f9 100644 --- a/nss/gr.c +++ b/nss/gr.c @@ -25,7 +25,6 @@ #include -#include "cash.h" #include "cash_nss.h" #include "file.h" #include "search.h" @@ -53,7 +52,7 @@ struct group_entry { * All offsets are relative to the beginning of data. */ uint16_t data_size; - char data[]; + const char data[]; } __attribute__((packed)); static bool entry_to_group(const struct group_entry *e, struct group *g, char *tmp, size_t space) {