Deleted Added
sdiff udiff text old ( 130368 ) new ( 164033 )
full compact
1/* $FreeBSD: head/sys/contrib/altq/altq/altq_priq.c 130368 2004-06-12 00:57:20Z mlaier $ */
2/* $KAME: altq_priq.c,v 1.11 2003/09/17 14:23:25 kjc Exp $ */
3/*
4 * Copyright (C) 2000-2003
5 * Sony Computer Science Laboratories Inc. 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:

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

767 struct priq_interface *ifacep;
768 int error = 0;
769
770 /* check super-user privilege */
771 switch (cmd) {
772 case PRIQ_GETSTATS:
773 break;
774 default:
775#if (__FreeBSD_version > 400000)
776 if ((error = suser(p)) != 0)
777 return (error);
778#else
779 if ((error = suser(p->p_ucred, &p->p_acflag)) != 0)
780 return (error);
781#endif
782 break;
783 }

--- 267 unchanged lines hidden ---