Author: ed Date: Tue May 26 18:33:36 2009 New Revision: 192827 URL: http://svn.freebsd.org/changeset/base/192827
Log: Get rid of M_TEMP. Modified: head/sys/kern/tty.c Modified: head/sys/kern/tty.c ============================================================================== --- head/sys/kern/tty.c Tue May 26 18:30:17 2009 (r192826) +++ head/sys/kern/tty.c Tue May 26 18:33:36 2009 (r192827) @@ -1069,7 +1069,7 @@ sysctl_kern_ttys(SYSCTL_HANDLER_ARGS) return (0); } - xtlist = xt = malloc(lsize, M_TEMP, M_WAITOK); + xtlist = xt = malloc(lsize, M_TTY, M_WAITOK); TAILQ_FOREACH(tp, &tty_list, t_list) { tty_lock(tp); @@ -1080,7 +1080,7 @@ sysctl_kern_ttys(SYSCTL_HANDLER_ARGS) sx_sunlock(&tty_list_sx); error = SYSCTL_OUT(req, xtlist, lsize); - free(xtlist, M_TEMP); + free(xtlist, M_TTY); return (error); } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"