(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;
|
int wantflags;
|
||||||
struct sctstr ap_sect;
|
struct sctstr ap_sect;
|
||||||
int dst_type;
|
int dst_type;
|
||||||
s_char *dst_ptr;
|
void *dst_ptr;
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
|
|
||||||
wantflags = 0;
|
wantflags = 0;
|
||||||
|
@ -95,11 +95,11 @@ fly(void)
|
||||||
if (pln_onewaymission(&target, &cno, &wantflags) < 0)
|
if (pln_onewaymission(&target, &cno, &wantflags) < 0)
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
if (cno < 0) {
|
if (cno < 0) {
|
||||||
dst_ptr = (s_char *)⌖
|
dst_ptr = ⌖
|
||||||
dst_type = EF_SECTOR;
|
dst_type = EF_SECTOR;
|
||||||
} else {
|
} else {
|
||||||
getship(cno, &ship);
|
getship(cno, &ship);
|
||||||
dst_ptr = (s_char *)&ship;
|
dst_ptr = &ship;
|
||||||
dst_type = EF_SHIP;
|
dst_type = EF_SHIP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue