Fix warnings.

This commit is contained in:
angelos 1997-11-25 21:50:28 +00:00
parent 4ff355c3c1
commit efcc787eff
4 changed files with 89 additions and 2 deletions

View File

@ -1,5 +1,22 @@
*** nix/machine.c.bak Thu Jan 12 09:53:00 1995
--- nix/machine.c Tue Jan 24 19:38:07 1995
*** nix/machine.c.orig Thu Jan 12 01:53:00 1995
--- nix/machine.c Tue Nov 25 16:46:54 1997
***************
*** 336,342 ****
static char ts[22];
struct tm *tim;
! tim=localtime((long *)&t);
sprintf(ts,"%04d-%02d-%02d %02d:%02d",tim->tm_year+1900,tim->tm_mon+1,
tim->tm_mday,tim->tm_hour,tim->tm_min);
return ts;
--- 336,342 ----
static char ts[22];
struct tm *tim;
! tim=localtime((time_t *)&t);
sprintf(ts,"%04d-%02d-%02d %02d:%02d",tim->tm_year+1900,tim->tm_mon+1,
tim->tm_mday,tim->tm_hour,tim->tm_min);
return ts;
***************
*** 417,423 ****
if (plainname!=NULL) free(plainname),plainname=NULL;

View File

@ -0,0 +1,46 @@
*** c/hsc.c.orig Tue Nov 25 16:41:59 1997
--- c/hsc.c Tue Nov 25 16:43:57 1997
***************
*** 19,25 ****
HA HSC method
***********************************************************************/
- #include <malloc.h>
#include <stdlib.h>
#include <stdio.h>
#include "ha.h"
--- 19,24 ----
***************
*** 486,492 ****
register U16B c;
register U16B tv;
register U16B i;
! register S16B sum,tot,esc,cf;
register unsigned char sv;
esc=adj_escape_prob(fe[cp],cp);
--- 485,491 ----
register U16B c;
register U16B tv;
register U16B i;
! register S16B sum,tot,esc,cf = 0;
register unsigned char sv;
esc=adj_escape_prob(fe[cp],cp);
***************
*** 546,552 ****
register U16B c;
register U16B tv;
register U16B i;
! register S16B sum,tot,esc,cf;
esc=tot=0;
for (i=cp;i!=NIL;i=nb[i]) {
--- 545,551 ----
register U16B c;
register U16B tv;
register U16B i;
! register S16B sum,tot,esc,cf = 0;
esc=tot=0;
for (i=cp;i!=NIL;i=nb[i]) {

View File

@ -0,0 +1,12 @@
*** c/asc.c.orig Tue Nov 25 16:44:31 1997
--- c/asc.c Tue Nov 25 16:44:50 1997
***************
*** 19,25 ****
HA ASC method
***********************************************************************/
- #include <malloc.h>
#include <stdlib.h>
#include <stdio.h>
#include "ha.h"
--- 19,24 ----

View File

@ -0,0 +1,12 @@
*** c/cpy.c.orig Tue Nov 25 16:47:16 1997
--- c/cpy.c Tue Nov 25 16:47:26 1997
***************
*** 20,26 ****
***********************************************************************/
#include <stdio.h>
- #include <malloc.h>
#include "ha.h"
#include "cpy.h"
#include "haio.h"
--- 20,25 ----