=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mail/vars.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/mail/vars.c 1996/06/11 12:53:53 1.2 --- src/usr.bin/mail/vars.c 1997/07/13 21:21:18 1.3 *************** *** 1,4 **** ! /* $OpenBSD: vars.c,v 1.2 1996/06/11 12:53:53 deraadt Exp $ */ /* $NetBSD: vars.c,v 1.4 1996/06/08 19:48:45 christos Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: vars.c,v 1.3 1997/07/13 21:21:18 millert Exp $ */ /* $NetBSD: vars.c,v 1.4 1996/06/08 19:48:45 christos Exp $ */ /* *************** *** 38,44 **** #if 0 static char sccsid[] = "@(#)vars.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: vars.c,v 1.2 1996/06/11 12:53:53 deraadt Exp $"; #endif #endif /* not lint */ --- 38,44 ---- #if 0 static char sccsid[] = "@(#)vars.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: vars.c,v 1.3 1997/07/13 21:21:18 millert Exp $"; #endif #endif /* not lint */ *************** *** 64,70 **** h = hash(name); vp = lookup(name); if (vp == NOVAR) { ! vp = (struct var *) calloc(sizeof *vp, 1); vp->v_name = vcopy(name); vp->v_link = variables[h]; variables[h] = vp; --- 64,70 ---- h = hash(name); vp = lookup(name); if (vp == NOVAR) { ! vp = (struct var *) calloc(sizeof(*vp), 1); vp->v_name = vcopy(name); vp->v_link = variables[h]; variables[h] = vp; *************** *** 100,111 **** unsigned len; if (*str == '\0') ! return ""; len = strlen(str) + 1; if ((new = malloc(len)) == NULL) panic("Out of memory"); bcopy(str, new, (int) len); ! return new; } /* --- 100,111 ---- unsigned len; if (*str == '\0') ! return(""); len = strlen(str) + 1; if ((new = malloc(len)) == NULL) panic("Out of memory"); bcopy(str, new, (int) len); ! return(new); } /* *************** *** 193,197 **** } if (h < 0 && (h = -h) < 0) h = 0; ! return (h % HSHSIZE); } --- 193,197 ---- } if (h < 0 && (h = -h) < 0) h = 0; ! return(h % HSHSIZE); }