[BACK]Return to rs.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rs

Diff for /src/usr.bin/rs/rs.c between version 1.3 and 1.4

version 1.3, 1996/06/26 05:38:47 version 1.4, 1997/09/12 04:12:54
Line 50 
Line 50 
  */   */
   
 #include <ctype.h>  #include <ctype.h>
   #include <err.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
Line 266 
Line 267 
         else if (orows == 0 && ocols == 0) {    /* decide rows and cols */          else if (orows == 0 && ocols == 0) {    /* decide rows and cols */
                 ocols = owidth / colw;                  ocols = owidth / colw;
                 if (ocols == 0) {                  if (ocols == 0) {
                         warnx("Display width %d is less than column width %d\n", owidth, colw);                          warnx("Display width %d is less than column width %d",
                               owidth, colw);
                         ocols = 1;                          ocols = 1;
                 }                  }
                 if (ocols > nelem)                  if (ocols > nelem)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4