]> git.pond.sub.org Git - empserver/commitdiff
(list_realm): Fix type of parameter curr (broken in rev. 1.9).
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 14 Jan 2006 15:30:18 +0000 (15:30 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 14 Jan 2006 15:30:18 +0000 (15:30 +0000)
Simplify.

src/lib/commands/real.c

index b198e3e5b29254a58584a47b8b91844e8696e2c9..df1e56ca139396316ff2a18755712cd9ac657de8 100644 (file)
 #include "commands.h"
 
 static void
-list_realm(natid curr, struct natstr *natp)
+list_realm(int curr, struct natstr *natp)
 {
     struct realmstr realm;
-    struct range abs;
-    struct range rel;
 
-    abs.width = 0;
-    abs.height = 0;
     getrealm(curr, natp->nat_cnum, &realm);
-    abs.lx = realm.r_xl;
-    abs.hx = realm.r_xh;
-    abs.ly = realm.r_yl;
-    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);
-
+    pr("Realm #%d is %d:%d,%d:%d\n", curr,
+       xrel(natp, realm.r_xl), xrel(natp, realm.r_xh),
+       yrel(natp, realm.r_yl), yrel(natp, realm.r_yh));
 }
 
 int