From: Eric S. Raymond Date: Thu, 21 Oct 2010 11:27:44 +0000 (-0400) Subject: Fix some compiler warnings. They might vome back on 32-bit machines. X-Git-Tag: 1.8~3 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=6f361d45afc83e53867accb36fd36ad2ce76626e;p=vms-empire.git Fix some compiler warnings. They might vome back on 32-bit machines. --- diff --git a/edit.c b/edit.c index 85609e3..d6be667 100644 --- a/edit.c +++ b/edit.c @@ -595,7 +595,7 @@ long edit_cursor; (void) sprintf (temp_buf, "%c:%s; ", piece_attr[s].sname, func_name[FUNCI(cityp->func[s])]); - else (void) sprintf (temp_buf, "%c: %ld;", + else (void) sprintf (temp_buf, "%c: %d;", piece_attr[s].sname, loc_disp(cityp->func[s])); @@ -603,7 +603,7 @@ long edit_cursor; } (void) sprintf (junk_buf2, - "City at location %ld will complete %s on round %ld", + "City at location %d will complete %s on round %ld", loc_disp(cityp->loc), piece_attr[(int)cityp->prod].article, date + piece_attr[(int)cityp->prod].build_time - cityp->work); diff --git a/object.c b/object.c index 71ad82a..ab1e6f7 100644 --- a/object.c +++ b/object.c @@ -502,7 +502,7 @@ piece_info_t *obj; char func[STRSIZE]; char other[STRSIZE]; - if (obj->func >= 0) (void) sprintf (func, "%ld", loc_disp(obj->func)); + if (obj->func >= 0) (void) sprintf (func, "%d", loc_disp(obj->func)); else (void) sprintf (func, func_name[FUNCI(obj->func)]); other[0] = 0;