]> ruderich.org/simon Gitweb - nsscash/nsscash.git/blobdiff - nss/gr.c
nss: gr/pw: make data const
[nsscash/nsscash.git] / nss / gr.c
index c49ef4799be15db6e4996b4c01042eb5965d8a75..8b336f9615bb4b0c200417240fa82f76ebb87166 100644 (file)
--- a/nss/gr.c
+++ b/nss/gr.c
@@ -25,7 +25,6 @@
 
 #include <pthread.h>
 
-#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) {