(fly): Use void * for generic pointer dst_ptr.
This commit is contained in:
parent
78c502fe87
commit
3e42c03405
1 changed files with 3 additions and 3 deletions
|
@ -66,7 +66,7 @@ fly(void)
|
|||
int wantflags;
|
||||
struct sctstr ap_sect;
|
||||
int dst_type;
|
||||
s_char *dst_ptr;
|
||||
void *dst_ptr;
|
||||
char buf[1024];
|
||||
|
||||
wantflags = 0;
|
||||
|
@ -95,11 +95,11 @@ fly(void)
|
|||
if (pln_onewaymission(&target, &cno, &wantflags) < 0)
|
||||
return RET_SYN;
|
||||
if (cno < 0) {
|
||||
dst_ptr = (s_char *)⌖
|
||||
dst_ptr = ⌖
|
||||
dst_type = EF_SECTOR;
|
||||
} else {
|
||||
getship(cno, &ship);
|
||||
dst_ptr = (s_char *)&ship;
|
||||
dst_ptr = &ship;
|
||||
dst_type = EF_SHIP;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue