aboutsummaryrefslogtreecommitdiff
path: root/openssl/bugs/ultrixcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/bugs/ultrixcc.c')
-rw-r--r--openssl/bugs/ultrixcc.c53
1 files changed, 26 insertions, 27 deletions
diff --git a/openssl/bugs/ultrixcc.c b/openssl/bugs/ultrixcc.c
index 7ba75b140..6e24549d5 100644
--- a/openssl/bugs/ultrixcc.c
+++ b/openssl/bugs/ultrixcc.c
@@ -1,6 +1,7 @@
#include <stdio.h>
-/* This is a cc optimiser bug for ultrix 4.3, mips CPU.
+/*-
+ * This is a cc optimiser bug for ultrix 4.3, mips CPU.
* What happens is that the compiler, due to the (a)&7,
* does
* i=a&7;
@@ -12,34 +13,32 @@
*/
main()
- {
- f(5);
- f(0);
- }
+{
+ f(5);
+ f(0);
+}
int f(a)
int a;
- {
- switch(a&7)
- {
- case 7:
- printf("7\n");
- case 6:
- printf("6\n");
- case 5:
- printf("5\n");
- case 4:
- printf("4\n");
- case 3:
- printf("3\n");
- case 2:
- printf("2\n");
- case 1:
- printf("1\n");
+{
+ switch (a & 7) {
+ case 7:
+ printf("7\n");
+ case 6:
+ printf("6\n");
+ case 5:
+ printf("5\n");
+ case 4:
+ printf("4\n");
+ case 3:
+ printf("3\n");
+ case 2:
+ printf("2\n");
+ case 1:
+ printf("1\n");
#ifdef FIX_BUG
- case 0:
- ;
+ case 0:
+ ;
#endif
- }
- }
-
+ }
+}