#ifdef AFS_HPUX_ENV
#define static_inline static __inline
+#define hdr_static_inline static __inline
#elif defined(AFS_AIX_ENV) || defined(AFS_SGI_ENV)
#define static_inline static
+#define hdr_static_inline
#else
#define static_inline static inline
+#define hdr_static_inline static inline
#endif
/* A macro that can be used when printf'ing 64 bit integers, as Unix and
* printf statemements with %ld and %lu
*/
-static_inline long int afs_cast_int32(afs_int32 d) { return (long int) d; }
-static_inline unsigned long int afs_cast_uint32(afs_uint32 d) { return (unsigned long int) d; }
+hdr_static_inline long int afs_cast_int32(afs_int32 d) { return (long int) d; }
+hdr_static_inline unsigned long int afs_cast_uint32(afs_uint32 d) { return (unsigned long int) d; }
#endif /* OPENAFS_CONFIG_AFS_STDS_H */
#include "rx/rx_globals.h"
#include "afs/afs_stats.h"
#include "h/errno.h"
+#if !(defined(AFS_SUN5_ENV) && defined(KERNEL))
+/* if sys/systm.h includes varargs.h some versions of solaris have conflicts */
#include "stdarg.h"
+#endif
#ifdef KERNEL
#include "afs/sysincludes.h"
#include "afsincludes.h"
printf("\t\treason = %d (%s)\n",
vop.com.reason, reason_code_to_string(vop.com.reason));
printf("\t\tcommand_len = %u\n", vop.com.command_len);
- printf("\t\tflags = 0x%lux\n", (afs_uint32)(vop.com.flags));
+ printf("\t\tflags = 0x%lux\n", afs_cast_uint32(vop.com.flags));
printf("\t}\n");
printf("\tvop = {\n");
}
#else /* !AFS_DEMAND_ATTACH_FS */
tvolName[0] = '/';
- snprintf(&tvolName[1], sizeof(tvolName)-1, VFORMAT, (afs_uint32)(vcom->vop->volume));
+ snprintf(&tvolName[1], sizeof(tvolName)-1, VFORMAT, afs_cast_uint32(vcom->vop->volume));
tvolName[sizeof(tvolName)-1] = '\0';
vp = VAttachVolumeByName_r(&error, vcom->vop->partName, tvolName,
Volume *vp;
tvolName[0] = '/';
- sprintf(&tvolName[1], VFORMAT, (afs_uint32)(p[i].volumeID));
+ sprintf(&tvolName[1], VFORMAT, afs_cast_uint32(p[i].volumeID));
vp = VAttachVolumeByName_r(&error, p[i].partName, tvolName,
V_VOLUPD);
if (vp)