--- preproc.c.orig 2003-08-04 08:48:01.000000000 -0700 +++ preproc.c 2009-09-30 11:42:07.000000000 -0700 @@ -3205,7 +3205,7 @@ goto bin; nline++; - if (sscanf(line,"%5d",&ntun)!=1) + if (sscanf(line,"%5ld",&ntun)!=1) goto bin; if (ntun<1 || ntun>3) goto bin; @@ -3219,7 +3219,7 @@ goto bin; nline++; - if (sscanf(line,"%5d",&nratt)!=1) /* # of atom types */ + if (sscanf(line,"%5ld",&nratt)!=1) /* # of atom types */ goto bin; @@ -3269,7 +3269,7 @@ if (fgets(line,120,filep)==NULL) goto err1; - if (sscanf(line,"%5d",&nraa2)!=1) /* Number of residues */ + if (sscanf(line,"%5ld",&nraa2)!=1) /* Number of residues */ goto err1; @@ -3293,7 +3293,7 @@ if (fgets(line,120,filep)==NULL) goto err1; - if (sscanf(line,"%5d",&nrp)!=1) + if (sscanf(line,"%5ld",&nrp)!=1) goto err1; if (nrp<1 || nrp>MAXATM) @@ -3347,7 +3347,7 @@ /* Skip over the nbty - BUG: Comment what is nbty??? */ - if (sscanf(line,"%5d",&nbty)!=1) + if (sscanf(line,"%5ld",&nbty)!=1) goto err1; n = (nbty+3)/4; @@ -3365,7 +3365,7 @@ goto err1; /* Read about bonds involving hydrogen */ - if (sscanf(line,"%5d",&nbonh)!=1) + if (sscanf(line,"%5ld",&nbonh)!=1) goto err1; for (k=0;kMAXATP) { - printf("\nError: (# of atom types) NATTYP=%d exceeds (Max # atom types) MAXATP=%d\n",nattyp,MAXATP); + printf("\nError: (# of atom types) NATTYP=%ld exceeds (Max # atom types) MAXATP=%d\n",nattyp,MAXATP); exit(EXIT_FAILURE); } @@ -3966,7 +3966,7 @@ bufptr = getuflong(bufptr,&natmov,1); if (natmov>natom) { - printf("NATMOV=%d > NATOM=%d??\n\n",natmov,natom); + printf("NATMOV=%ld > NATOM=%ld??\n\n",natmov,natom); exit(EXIT_FAILURE); } @@ -4020,7 +4020,7 @@ getuflong(buff,&nbond,1); if (nbond>MAXBND) { - printf("\nError: NBOND=%d exceeds MAXBND=%d\n\n",nbond,MAXBND); + printf("\nError: NBOND=%ld exceeds MAXBND=%d\n\n",nbond,MAXBND); exit(EXIT_FAILURE); }