Deleted Added
sdiff udiff text old ( 148887 ) new ( 164033 )
full compact
1/* $FreeBSD: head/sys/contrib/altq/altq/altq_cbq.c 148887 2005-08-09 10:20:02Z rwatson $ */
2/* $KAME: altq_cbq.c,v 1.19 2003/09/17 14:23:25 kjc Exp $ */
3
4/*
5 * Copyright (c) Sun Microsystems, Inc. 1993-1998 All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

--- 1047 unchanged lines hidden (view full) ---

1057 int error = 0;
1058
1059 /* check cmd for superuser only */
1060 switch (cmd) {
1061 case CBQ_GETSTATS:
1062 /* currently only command that an ordinary user can call */
1063 break;
1064 default:
1065#if (__FreeBSD_version > 400000)
1066 error = suser(p);
1067#else
1068 error = suser(p->p_ucred, &p->p_acflag);
1069#endif
1070 if (error)
1071 return (error);
1072 break;
1073 }

--- 110 unchanged lines hidden ---