opnsense-ports/net/mopd/files/patch-file.c
Franco Fichtner 05ec040734 */*: sync with upstream
Taken from: FreeBSD
2015-05-23 07:42:34 +02:00

37 lines
752 B
C

--- common/file.c.orig Sat Aug 17 00:39:41 1996
+++ common/file.c Mon Aug 23 16:36:03 2004
@@ -44,6 +44,7 @@
#endif
#if defined(__FreeBSD__)
#include <sys/imgact_aout.h>
+#include <sys/endian.h>
#endif
#if !defined(MID_VAX)
#define MID_VAX 140
@@ -345,7 +346,7 @@
mid = MID_ARM6;
break;
#endif
- default:
+ default: break;
/*###352 [cc] syntax error before `}'%%%*/
}
@@ -522,7 +523,7 @@
ex.a_trsize= mopFileGetBX((u_char *)&ex_swap, 24, 4);
ex.a_drsize= mopFileGetBX((u_char *)&ex_swap, 28, 4);
break;
- default:
+ default: break;
/*###525 [cc] syntax error before `}'%%%*/
}
@@ -575,7 +576,7 @@
printf("arm32");
break;
#endif
- default:
+ default: break;
}
printf(") Magic: ");
switch (N_GETMAGIC (ex)) {