Skip to content

Commit 7ac3d8f

Browse files
author
Ian Seyler
committed
Fixed function declaration without a prototype is deprecated in all versions of C error
1 parent 99b6ab6 commit 7ac3d8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bmfs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ char DiskInfo[512];
5555

5656
/* Built-in functions */
5757
int findfile(char *filename, struct BMFSEntry *fileentry, int *entrynumber);
58-
void list();
59-
void format();
58+
void list(void);
59+
void format(void);
6060
int initialize(char *diskname, char *size, char *mbr, char *boot, char *kernel);
6161
void create(char *filename, unsigned long long maxsize);
6262
void read(char *filename);
@@ -249,7 +249,7 @@ int findfile(char *filename, struct BMFSEntry *fileentry, int *entrynumber)
249249
}
250250

251251

252-
void list()
252+
void list(void)
253253
{
254254
int tint;
255255

@@ -275,7 +275,7 @@ void list()
275275
}
276276

277277

278-
void format()
278+
void format(void)
279279
{
280280
memset(DiskInfo, 0, 512);
281281
memset(Directory, 0, 4096);

0 commit comments

Comments
 (0)