Fixed cast to __hash().
authorElan Amir <elan@ucbvax.Berkeley.EDU>
Wed, 3 Mar 1993 06:43:39 +0000 (22:43 -0800)
committerElan Amir <elan@ucbvax.Berkeley.EDU>
Wed, 3 Mar 1993 06:43:39 +0000 (22:43 -0800)
SCCS-vsn: lib/libcurses/newwin.c 5.15

usr/src/lib/libcurses/newwin.c

index 06480e7..50ea849 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)newwin.c   5.14 (Berkeley) %G%";
+static char sccsid[] = "@(#)newwin.c   5.15 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <curses.h>
 #endif /* not lint */
 
 #include <curses.h>
@@ -52,7 +52,7 @@ newwin(nl, nc, by, bx)
                        sp->ch = ' ';
                        sp->attr = 0;
                }
                        sp->ch = ' ';
                        sp->attr = 0;
                }
-               lp->hash = __hash(lp->line, nc * __LDATASIZE);
+               lp->hash = __hash((char *) lp->line, nc * __LDATASIZE);
        }
        return (win);
 }
        }
        return (win);
 }