]> 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 6f7b42b82b581513dc138d62f67dacbae856d36c..4d70199b351e3bab0f8419e10826d23ce1de0e71 100644 (file)
@@ -38,8 +38,7 @@ CDUMP_SAVED struct client {
 
 CDUMP_SAVED struct oserver {
        unsigned int max_clients;
-       /* 5 clients should be enough for anybody! */
-       struct client *clients[5];
+       struct client **clients CDUMP_LEN(max_clients);
        int fd;
        struct tevent_fd *fde CDUMP_IGNORE;
        const char *dumpfile;