fix mkpty function declarations

This commit is contained in:
Emile Clark-Boman 2025-09-09 19:43:54 +10:00
parent a1e34376de
commit 2893caf8ab
3 changed files with 14 additions and 6 deletions

View file

@ -113,7 +113,7 @@ int bindpty(const int fdty) {
* forkpty() function. It exists as a learning resource.
* REF: https://sourceware.org/git/glibc.git -> ./login/forkpty.c
*/
pid_t forkmkpty() {
pid_t forkmkpty(void) {
int fdmx, fds;
pid_t pid;
if (mkpty(&fdmx, &fds))