blob: 4f5d64e4070ee7d503fdec6341866e7489cedb07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
$NetBSD: patch-ag,v 1.4 2006/10/10 06:56:05 uebayasi Exp $
--- as/as.c.orig 1993-07-10 21:03:52.000000000 +0200
+++ as/as.c
@@ -7,7 +7,6 @@
#include "const.h"
#include "type.h"
-#include "byteord.h"
#include "macro.h"
#undef EXTERN
#define EXTERN
@@ -31,12 +30,15 @@ int close P((int fd));
int creat P((const char *path, int mode));
int write P((int fd, const void *buf, unsigned nbytes));
#else
-#undef NULL
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#endif
+/* BSD #defines this in <machine/endian.h>, but with another sense */
+#undef BIG_ENDIAN
+#include "byteord.h"
+
PUBLIC char hexdigit[] = "0123456789ABCDEF"; /* XXX - ld uses lower case */
PRIVATE struct block_s hid_blockstak[MAXBLOCK]; /* block stack */
@@ -157,7 +159,7 @@ char **argv;
{
char *arg;
bool_t isnextarg;
- char *nextarg;
+ char *nextarg = NULL;
if (argc <= 1)
usage();
|