Skip to content

Commit

Permalink
Fixed deprecated function warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
doug1234 committed Apr 5, 2024
1 parent a968c1c commit 3daf2c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kpty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ void KPty::login(const char * user, const char * remotehost)
#ifdef HAVE_UTEMPTER
Q_D(KPty);

addToUtmp(d->ttyName.constData(), remotehost, d->masterFd);
utempter_add_record(d->masterFd, remotehost);
Q_UNUSED(user)
#else
# ifdef HAVE_UTMPX
Expand Down Expand Up @@ -597,7 +597,7 @@ void KPty::logout()
#ifdef HAVE_UTEMPTER
Q_D(KPty);

removeLineFromUtmp(d->ttyName.constData(), d->masterFd);
utempter_remove_record(d->masterFd);
#else
Q_D(KPty);

Expand Down

0 comments on commit 3daf2c6

Please sign in to comment.