lint cleanups
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 23 Jul 1988 03:03:32 +0000 (19:03 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 23 Jul 1988 03:03:32 +0000 (19:03 -0800)
SCCS-vsn: usr.bin/more/ch.c 5.4

usr/src/usr.bin/more/ch.c

index e2b44e2..0428a4b 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)ch.c       5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)ch.c       5.4 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -155,7 +155,7 @@ fch_get()
                        quit();
                }
        } else
                        quit();
                }
        } else
-               lseek(file, pos, 0);
+               (void)lseek(file, pos, L_SET);
 
        /*
         * Read the block.
 
        /*
         * Read the block.
@@ -389,7 +389,7 @@ ch_init(want_nbufs, keep)
                 * If we don't have ANY, then quit.
                 * Otherwise, just report the error and return.
                 */
                 * If we don't have ANY, then quit.
                 * Otherwise, just report the error and return.
                 */
-               sprintf(message, "cannot allocate %d buffers",
+               (void)sprintf(message, "cannot allocate %d buffers",
                        want_nbufs - nbufs);
                error(message);
                if (nbufs == 0)
                        want_nbufs - nbufs);
                error(message);
                if (nbufs == 0)
@@ -426,7 +426,7 @@ ch_addbuf(nnew)
         * We don't have enough buffers.  
         * Allocate some new ones.
         */
         * We don't have enough buffers.  
         * Allocate some new ones.
         */
-       newbufs = (struct buf *) calloc(nnew, sizeof(struct buf));
+       newbufs = (struct buf *) calloc((u_int)nnew, sizeof(struct buf));
        if (newbufs == NULL)
                return (1);
 
        if (newbufs == NULL)
                return (1);