]> www.infradead.org Git - users/dhowells/kafs-utils.git/commitdiff
xg: Switch AFS_MAX_DESTINATIONS from #define to const int
authorDavid Howells <dhowells@redhat.com>
Thu, 26 Sep 2019 10:06:42 +0000 (11:06 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 26 Sep 2019 10:06:42 +0000 (11:06 +0100)
Signed-off-by: David Howells <dhowells@redhat.com>
rpc-api/volumeserver.xg

index b3c842adce34344cd203b9b59a83bceb79e662c5..c7491cde040b7d6dbd14c48cf236a6aa4cb592ed 100644 (file)
@@ -271,7 +271,7 @@ struct replica {
        struct destServer destserver;
 };
 
-#define AFS_MAX_DESTINATIONS   255
+const AFS_MAX_DESTINATIONS = 255;
 
 typedef replica manyDests<AFS_MAX_DESTINATIONS>;