1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix -Wstrict-prototypes issues.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-02-29 00:53:59 +01:00
parent 4ee8f9ec38
commit f29f8e7679
3 changed files with 8 additions and 8 deletions

View file

@ -886,7 +886,7 @@ static void unscan_partition(struct partition* p)
bdev->fs_error = FILESYSTEM_ERROR_NONE; bdev->fs_error = FILESYSTEM_ERROR_NONE;
} }
static void unscan_device() static void unscan_device(void)
{ {
if ( !current_hd ) if ( !current_hd )
return; return;
@ -922,7 +922,7 @@ static void scan_partition(struct partition* p)
filesystem_error_string(bdev->fs_error)); filesystem_error_string(bdev->fs_error));
} }
static void scan_device() static void scan_device(void)
{ {
if ( !current_hd ) if ( !current_hd )
return; return;

View file

@ -227,7 +227,7 @@ static bool prepare_block_device(void* ctx, const char* path)
return true; return true;
} }
static void prepare_block_devices() static void prepare_block_devices(void)
{ {
static bool done = false; static bool done = false;
if ( done ) if ( done )
@ -367,7 +367,7 @@ static void load_fstab(void)
sort_mountpoint); sort_mountpoint);
} }
static void set_hostname() static void set_hostname(void)
{ {
FILE* fp = fopen("/etc/hostname", "r"); FILE* fp = fopen("/etc/hostname", "r");
if ( !fp && errno == ENOENT ) if ( !fp && errno == ENOENT )
@ -384,7 +384,7 @@ static void set_hostname()
return warning("unable to set hostname: `%s': %m", hostname); return warning("unable to set hostname: `%s': %m", hostname);
} }
static void set_kblayout() static void set_kblayout(void)
{ {
FILE* fp = fopen("/etc/kblayout", "r"); FILE* fp = fopen("/etc/kblayout", "r");
if ( !fp && errno == ENOENT ) if ( !fp && errno == ENOENT )
@ -409,7 +409,7 @@ static void set_kblayout()
free(kblayout); free(kblayout);
} }
static void set_videomode() static void set_videomode(void)
{ {
FILE* fp = fopen("/etc/videomode", "r"); FILE* fp = fopen("/etc/videomode", "r");
if ( !fp && errno == ENOENT ) if ( !fp && errno == ENOENT )
@ -455,7 +455,7 @@ static void set_videomode()
xres, yres, bpp); xres, yres, bpp);
} }
static void init_early() static void init_early(void)
{ {
static bool done = false; static bool done = false;
if ( done ) if ( done )

View file

@ -239,7 +239,7 @@ static char etc[] = "/tmp/etc.XXXXXX";
static bool fs_made = false; static bool fs_made = false;
static char fs[] = "/tmp/fs.XXXXXX"; static char fs[] = "/tmp/fs.XXXXXX";
static void unmount_all_but_root() static void unmount_all_but_root(void)
{ {
for ( size_t n = mountpoints_used; n != 0; n-- ) for ( size_t n = mountpoints_used; n != 0; n-- )
{ {