summaryrefslogtreecommitdiffstats
path: root/bin/csh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/csh')
-rw-r--r--bin/csh/alloc.c5
-rw-r--r--bin/csh/time.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/bin/csh/alloc.c b/bin/csh/alloc.c
index b0a7a1e..aa4e74c 100644
--- a/bin/csh/alloc.c
+++ b/bin/csh/alloc.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: alloc.c,v 1.2 1994/09/24 02:53:45 davidg Exp $
*/
#ifndef lint
@@ -122,5 +122,6 @@ showall(v, t)
{
memtop = (char *) sbrk(0);
(void) fprintf(cshout, "Allocated memory from 0x%lx to 0x%lx (%ld).\n",
- (unsigned long) membot, (unsigned long) memtop, memtop - membot);
+ (unsigned long) membot, (unsigned long) memtop,
+ (unsigned long) (memtop - membot));
}
diff --git a/bin/csh/time.c b/bin/csh/time.c
index bee5bae..c63e0f5 100644
--- a/bin/csh/time.c
+++ b/bin/csh/time.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: time.c,v 1.2 1994/09/24 02:54:20 davidg Exp $
+ * $Id: time.c,v 1.3 1995/02/16 09:17:27 jkh Exp $
*/
#ifndef lint
@@ -246,7 +246,7 @@ pdeltat(t1, t0)
struct timeval td;
tvsub(&td, t1, t0);
- (void) fprintf(cshout, "%d.%01d", td.tv_sec, td.tv_usec / 100000);
+ (void) fprintf(cshout, "%ld.%01ld", td.tv_sec, td.tv_usec / 100000L);
}
void
OpenPOWER on IntegriCloud