]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
vol-dafs-aix-fixes-20080313
authorTom Keiser <tkeiser@sinenomine.net>
Fri, 14 Mar 2008 04:41:20 +0000 (04:41 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 14 Mar 2008 04:41:20 +0000 (04:41 +0000)
LICENSE IPL10
FIXES 88087

* xlc doesn't support the inline keyword unless C99 is enabled
* xlc won't parse enumerations with trailing commas

src/vol/daemon_com.h
src/vol/fssync.h
src/vol/vnode.h
src/vol/vnode_inline.h
src/vol/volume_inline.h

index ac29ed76c9fc2068612fef2fff0db640222c474f..41ec3cae583a84dcfcdf58cefe191a79a87f0df1 100644 (file)
@@ -27,6 +27,7 @@
  */
 enum SYNCOpCode {
     SYNC_COM_CHANNEL_CLOSE    = 0,      /**< request sync channel shutdown */
+    SYNC_OP_CODE_END
 };
 
 
@@ -47,6 +48,7 @@ enum SYNCReasonCode {
     SYNC_COM_ERROR            = 2,  /**< sync protocol communicaions error */
     SYNC_BAD_COMMAND          = 3,  /**< sync command code not implemented by server */
     SYNC_FAILED               = 4,  /**< sync server-side procedure failed */
+    SYNC_REASON_CODE_END
 };
 
 /* SYNC protocol reason codes
index 3bba7947b675698d2349e6ecbb7f0cc7b6cc9467..b506b883e3820b35f11531adc038c896393812b6 100644 (file)
@@ -50,6 +50,7 @@ enum FSYNCOpCode {
     FSYNC_VOL_FORCE_ERROR     = SYNC_COM_CODE_DECL(16), /**< force volume into error state */
     FSYNC_VOL_LEAVE_OFF       = SYNC_COM_CODE_DECL(17), /**< end vol op, but leave volume offline */
     FSYNC_VOL_QUERY_VNODE     = SYNC_COM_CODE_DECL(18), /**< query vnode state */
+    FSYNC_OP_CODE_END
 };
 
 /**
@@ -66,6 +67,7 @@ enum FSYNCReasonCode {
     FSYNC_NO_PENDING_VOL_OP   = SYNC_REASON_CODE_DECL(7), /**< no volume operation pending */
     FSYNC_VOL_PKG_ERROR       = SYNC_REASON_CODE_DECL(8), /**< error in the volume package */
     FSYNC_UNKNOWN_VNID        = SYNC_REASON_CODE_DECL(9), /**< vnode id not known by fileserver */
+    FSYNC_REASON_CODE_END
 };
 
 /* FSYNC response codes */
index 1eaf00638d3be7c8fb363a5059d2e7b7af93f82a..1c5e014b58f6caf31060755c470e916fd245fd13 100644 (file)
@@ -155,6 +155,7 @@ enum VnFlags {
     VN_ON_HASH            = 0x1,        /**< vnode is on hash table */
     VN_ON_LRU             = 0x2,        /**< vnode is on lru list */
     VN_ON_VVN             = 0x4,        /**< vnode is on volume vnode list */
+    VN_FLAGS_END
 };
 
 
index 07d2786b12a411d92e509fa5965e083a270a012f..d38a74d0356e0c182892534f2c77270348531fd6 100644 (file)
@@ -15,7 +15,7 @@
 #ifdef AFS_HPUX_ENV
 #define static_inline static __inline
 #elif defined(AFS_AIX_ENV)
-#define static_inline inline
+#define static_inline static
 #else
 #define static_inline static inline
 #endif
index cb3ca323e14e95001a9142aa1458ec8faa3f7e10..8a75fc60a6d980b6c49db2eba28684d6d99eba96 100644 (file)
@@ -15,7 +15,7 @@
 #ifdef AFS_HPUX_ENV
 #define static_inline static __inline
 #elif defined(AFS_AIX_ENV)
-#define static_inline inline
+#define static_inline static
 #else
 #define static_inline static inline
 #endif