Deleted Added
full compact
altq_priq.c (130368) altq_priq.c (164033)
1/* $FreeBSD: head/sys/contrib/altq/altq/altq_priq.c 130368 2004-06-12 00:57:20Z mlaier $ */
1/* $FreeBSD: head/sys/contrib/altq/altq/altq_priq.c 164033 2006-11-06 13:42:10Z rwatson $ */
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:
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)
775#if (__FreeBSD_version > 700000)
776 if ((error = priv_check(p, PRIV_ALTQ_MANAGE)) != 0)
777 return (error);
778#elsif (__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 ---
779 if ((error = suser(p)) != 0)
780 return (error);
781#else
782 if ((error = suser(p->p_ucred, &p->p_acflag)) != 0)
783 return (error);
784#endif
785 break;
786 }

--- 267 unchanged lines hidden ---