Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion c/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ s48_ref_t scm_gethostname(s48_call_t call)
{
char hostname[MAXHOSTNAMELEN+1];
/* different OS's declare differently, so punt the prototype. */
int gethostname();
int gethostname(char *name, size_t size);
int retval = gethostname(hostname, MAXHOSTNAMELEN);
if (retval == -1) s48_os_error_2(call, "scm_gethostname", errno, 0);
return s48_enter_byte_string_2(call, hostname);
Expand Down