Skip to content

Commit a0e7036

Browse files
committed
Replaces (expanded) lisp string base access pattern with STRING_BASE macro
1 parent 364bc1f commit a0e7036

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/osmsg.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,13 @@ LispPTR mess_read(LispPTR *args)
233233
struct stat sbuf;
234234
int size, save_size;
235235
char *base;
236-
LispPTR *naddress;
237236
int i;
238237
static char temp_buf[MESSAGE_BUFFER_SIZE];
239238

240239
SETJMP(NIL);
241240

242241
/* Get buff address from LISP */
243-
naddress = (LispPTR *)(NativeAligned4FromLAddr(args[0]));
244-
base = (char *)(NativeAligned2FromLAddr(((OneDArray *)naddress)->base));
242+
STRING_BASE(args[0], base);
245243

246244
close(log_id);
247245
TIMEOUT(log_id = open(logfile, O_RDONLY));

0 commit comments

Comments
 (0)