DEVEL15-aix6-no-vprintf-but-strict-kernel-prototypes-20090609
authorDerrick Brashear <shadow@dementia.org>
Tue, 9 Jun 2009 22:30:39 +0000 (22:30 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 9 Jun 2009 22:30:39 +0000 (22:30 +0000)
LICENSE IPL10

alas, we can't use varargs style prototypes since we can't handle the args!

(cherry picked from commit e87be8c5794ccd6eecd3b420dc12085a3608fadb)

src/rx/rx_prototypes.h

index 9b114fe..307e75d 100644 (file)
@@ -366,9 +366,13 @@ extern osi_socket rxi_GetHostUDPSocket(u_int host, u_short port);
 #if defined(KERNEL) && (defined(AFS_AIX_ENV) && !defined(AFS_AIX61_ENV))
 extern void osi_Panic(char *fmt, void *a1, void *a2, void *a3);
 #else
+#ifdef AFS_AIX61_ENV
+/* No prototype. Deliberate, since there's no vprintf et al */
+#else
 extern void osi_Panic(char *fmt, ...);
 #endif
 #endif
+#endif
 extern int osi_utoa(char *buf, size_t len, unsigned long val);
 extern void rxi_InitPeerParams(struct rx_peer *pp);
 extern void shutdown_rxkernel(void);