From 4be8eeefdf45db68d7d1d74bfaa40c48f6970097 Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Sat, 7 Mar 2026 16:26:00 +1100 Subject: [PATCH] Fix some typos and that --- libs/unistd/unistd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/unistd/unistd.c b/libs/unistd/unistd.c index 97e03db..dd6c022 100644 --- a/libs/unistd/unistd.c +++ b/libs/unistd/unistd.c @@ -269,10 +269,10 @@ void ground_init(GroundScope* scope) { // Misc groundAddNativeFunction(scope, "unistd_Crypt", groundCrypt, STRING, 2, STRING, "key", STRING, "value"); - groundAddNativeFunction(scope, "unistd_GetHostId", groundGetHostId, STRING, 0); + groundAddNativeFunction(scope, "unistd_GetHostId", groundGetHostId, INT, 0); groundAddNativeFunction(scope, "unistd_SetHostId", groundSetHostId, INT, 1, INT, "hostid"); - groundAddNativeFunction(scope, "unistd_GetHostname", groundGetHostname, INT, 0); - groundAddNativeFunction(scope, "unistd_SetHostname", groundGetHostname, INT, 1, STRING, "name"); + groundAddNativeFunction(scope, "unistd_GetHostname", groundGetHostname, STRING, 0); + groundAddNativeFunction(scope, "unistd_SetHostname", groundSetHostname, INT, 1, STRING, "name"); // Signals groundAddNativeFunction(scope, "unistd_Alarm", groundAlarm, INT, 1, INT, "seconds"); @@ -310,7 +310,7 @@ void ground_init(GroundScope* scope) { groundAddNativeFunction(scope, "unistd_GetEUid", groundGetEUid, INT, 0); groundAddNativeFunction(scope, "unistd_GetLogin", groundGetLogin, STRING, 0); groundAddNativeFunction(scope, "unistd_SetEUid", groundSetEUid, INT, 1, INT, "euid"); - groundAddNativeFunction(scope, "unistd_SetEGid", groundSetEGid, INT, 1, INT, "euid"); + groundAddNativeFunction(scope, "unistd_SetEGid", groundSetEGid, INT, 1, INT, "egid"); groundAddNativeFunction(scope, "unistd_SetREUid", groundSetEGid, INT, 1, INT, "ruid", INT, "euid"); groundAddNativeFunction(scope, "unistd_SetREGid", groundSetEGid, INT, 1, INT, "rgid", INT, "egid"); }