mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove unneded cast in login_getclassbyname which cause warning
This commit is contained in:
parent
4c290c2ae1
commit
a2ee73bcc6
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: init.c,v 1.17 1997/06/13 06:24:42 charnier Exp $
|
||||
* $Id: init.c,v 1.18 1997/06/28 08:18:29 pst Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
|
@ -1471,7 +1471,7 @@ setprocresources(cname)
|
|||
const char *cname;
|
||||
{
|
||||
login_cap_t *lc;
|
||||
if ((lc = login_getclassbyname(cname, (char*)NULL)) != NULL) {
|
||||
if ((lc = login_getclassbyname(cname, NULL)) != NULL) {
|
||||
setusercontext(lc, (struct passwd*)NULL, 0, LOGIN_SETPRIORITY|LOGIN_SETRESOURCES);
|
||||
login_close(lc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue