1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:27:34 +00:00

Fix all current build warnings in the userland.

This commit is contained in:
Andreas Kling 2018-11-09 10:18:04 +01:00
parent e9cdb6bb9b
commit 3e0a0dd7ed
12 changed files with 42 additions and 25 deletions

View file

@ -1,10 +1,12 @@
#include <LibC/unistd.h>
#include <LibC/stdio.h>
#include <LibC/errno.h>
#include <LibC/string.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
int main(int c, char** v)
int main(int argc, char** argv)
{
(void) argc;
(void) argv;
char buffer[HOST_NAME_MAX];
int rc = gethostname(buffer, sizeof(buffer));
if (rc < 0) {