]> git.ozlabs.org Git - ccan-lca-2011.git/blobdiff - ccan/oserver/oserver_types.h
lca2011: use max_clients field to control dynamic length of clients array.
[ccan-lca-2011.git] / ccan / oserver / oserver_types.h
index 9943d090fd2f1c6443fb56149ec487266a727d59..4d70199b351e3bab0f8419e10826d23ce1de0e71 100644 (file)
@@ -37,8 +37,8 @@ CDUMP_SAVED struct client {
 };
 
 CDUMP_SAVED struct oserver {
-       /* 5 clients should be enough for anybody! */
-       struct client *clients[5];
+       unsigned int max_clients;
+       struct client **clients CDUMP_LEN(max_clients);
        int fd;
        struct tevent_fd *fde CDUMP_IGNORE;
        const char *dumpfile;