--- lbbs/src/user_priv.c 2025/10/24 02:07:01 1.22 +++ lbbs/src/user_priv.c 2025/11/04 13:49:51 1.23 @@ -1,18 +1,10 @@ -/*************************************************************************** - user_priv.c - description - ------------------- - Copyright : (C) 2004-2025 by Leaflet - Email : leaflet@leafok.com - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 3 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* + * user_priv + * - basic operations of user privilege + * + * Copyright (C) 2004-2025 by Leaflet + */ #include "bbs.h" #include "common.h" @@ -66,7 +58,7 @@ int setpriv(BBS_user_priv *p_priv, int s return 0; } - if (search_priv(p_priv, sid, &offset)) //found + if (search_priv(p_priv, sid, &offset)) // found { p_priv->s_priv_list[offset].s_priv = priv; p_priv->s_priv_list[offset].is_favor = is_favor; @@ -98,7 +90,7 @@ int getpriv(BBS_user_priv *p_priv, int s { int offset; - if (search_priv(p_priv, sid, &offset)) //found + if (search_priv(p_priv, sid, &offset)) // found { *p_is_favor = p_priv->s_priv_list[offset].is_favor; return p_priv->s_priv_list[offset].s_priv;