diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /include/venti.h | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2 plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip |
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'include/venti.h')
-rw-r--r-- | include/venti.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/venti.h b/include/venti.h index 2250e0b9..1b239af9 100644 --- a/include/venti.h +++ b/include/venti.h @@ -17,7 +17,7 @@ AUTOLIB(venti) */ enum { - MaxFragSize = 9*1024, + MaxFragSize = 9*1024 }; typedef struct Packet Packet; @@ -91,7 +91,7 @@ enum VtScoreSize = 20, VtMaxStringSize = 1024, VtMaxLumpSize = 56*1024, - VtPointerDepth = 7, + VtPointerDepth = 7 }; #define VtMaxFileSize ((1ULL<<48)-1) @@ -120,7 +120,7 @@ enum VtCorruptType = 0xFF, VtTypeDepthMask = 7, - VtTypeBaseMask = ~VtTypeDepthMask, + VtTypeBaseMask = ~VtTypeDepthMask }; /* convert to/from on-disk type numbers */ @@ -141,11 +141,11 @@ enum _VtEntryDir = 1<<1, /* a directory */ _VtEntryDepthShift = 2, /* shift for pointer depth */ _VtEntryDepthMask = 7<<2, /* mask for pointer depth */ - VtEntryLocal = 1<<5, /* for local storage only */ + VtEntryLocal = 1<<5 /* for local storage only */ }; enum { - VtEntrySize = 40, + VtEntrySize = 40 }; struct VtEntry { @@ -173,7 +173,7 @@ struct VtRoot enum { VtRootSize = 300, - VtRootVersion = 2, + VtRootVersion = 2 }; void vtrootpack(VtRoot*, uchar*); @@ -231,7 +231,7 @@ enum VtCryptoStrengthNone, VtCryptoStrengthAuth, VtCryptoStrengthWeak, - VtCryptoStrengthStrong, + VtCryptoStrengthStrong }; /* @@ -242,7 +242,7 @@ enum VtCryptoNone, VtCryptoSSL3, VtCryptoTLS1, - VtCryptoMax, + VtCryptoMax }; /* @@ -313,7 +313,7 @@ enum { VtStateAlloc, VtStateConnected, - VtStateClosed, + VtStateClosed }; struct VtConn @@ -387,7 +387,7 @@ int vtping(VtConn*); */ enum { - NilBlock = ~0, + NilBlock = ~0 }; typedef struct VtBlock VtBlock; @@ -459,7 +459,7 @@ enum { VtOREAD, VtOWRITE, - VtORDWR, + VtORDWR }; VtFile *vtfileopenroot(VtCache*, VtEntry*); |