]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/sail.c
Remove a bunch of redundant casts.
[empserver] / src / lib / commands / sail.c
index 809c0992298b5f329f0691accd8ef3de13c631d5..3c50f853386f9ea36adfbfc087e73d1bb9f4539f 100644 (file)
@@ -48,7 +48,7 @@ show_sail(struct nstr_item *nstr)
     int count = 0;
     struct shpstr ship;
 
-    while (nxtitem(nstr, (s_char *)&ship)) {
+    while (nxtitem(nstr, &ship)) {
        if (!player->owner || ship.shp_own == 0)
            continue;
        if (ship.shp_type < 0 || ship.shp_type > shp_maxno) {
@@ -100,7 +100,7 @@ cmd_unsail_ship(struct nstr_item *nstr)
     struct shpstr ship;
     int count = 0;
 
-    while (nxtitem(nstr, (s_char *)&ship)) {
+    while (nxtitem(nstr, &ship)) {
        if (!player->owner || ship.shp_own == 0)
            continue;
        if (ship.shp_type < 0 || ship.shp_type > shp_maxno) {
@@ -124,7 +124,7 @@ cmd_sail_ship(struct nstr_item *nstr)
     struct shpstr ship;
     char navpath[MAX_PATH_LEN];
 
-    while (!player->aborted && nxtitem(nstr, (s_char *)&ship)) {
+    while (!player->aborted && nxtitem(nstr, &ship)) {
        if (!player->owner || ship.shp_own == 0)
            continue;
        if (ship.shp_type < 0 || ship.shp_type > shp_maxno) {