(list_realm): Fix type of parameter curr (broken in rev. 1.9).
Simplify.
This commit is contained in:
parent
8b047abe53
commit
8a3dc2d846
1 changed files with 4 additions and 12 deletions
|
@ -42,22 +42,14 @@
|
||||||
#include "commands.h"
|
#include "commands.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
list_realm(natid curr, struct natstr *natp)
|
list_realm(int curr, struct natstr *natp)
|
||||||
{
|
{
|
||||||
struct realmstr realm;
|
struct realmstr realm;
|
||||||
struct range abs;
|
|
||||||
struct range rel;
|
|
||||||
|
|
||||||
abs.width = 0;
|
|
||||||
abs.height = 0;
|
|
||||||
getrealm(curr, natp->nat_cnum, &realm);
|
getrealm(curr, natp->nat_cnum, &realm);
|
||||||
abs.lx = realm.r_xl;
|
pr("Realm #%d is %d:%d,%d:%d\n", curr,
|
||||||
abs.hx = realm.r_xh;
|
xrel(natp, realm.r_xl), xrel(natp, realm.r_xh),
|
||||||
abs.ly = realm.r_yl;
|
yrel(natp, realm.r_yl), yrel(natp, realm.r_yh));
|
||||||
abs.hy = realm.r_yh;
|
|
||||||
xyrelrange(natp, &abs, &rel);
|
|
||||||
pr("Realm #%d is %d:%d,%d:%d\n", curr, rel.lx, rel.hx, rel.ly, rel.hy);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue