diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-16 21:28:12 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-16 21:28:12 +0000 |
commit | 6d57a1a176004a7d8fc009cdcf760098f86e3263 (patch) | |
tree | ee423c619fad03813234b9362694a17f3a638f0b /sbin/fsck_msdos | |
parent | c707cb295fc3cac8d8feb343e949e0dcf71b8476 (diff) |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'sbin/fsck_msdos')
-rw-r--r-- | sbin/fsck_msdos/dir.c | 16 | ||||
-rw-r--r-- | sbin/fsck_msdos/ext.h | 34 | ||||
-rw-r--r-- | sbin/fsck_msdos/fat.c | 10 | ||||
-rw-r--r-- | sbin/fsck_msdos/main.c | 8 |
4 files changed, 34 insertions, 34 deletions
diff --git a/sbin/fsck_msdos/dir.c b/sbin/fsck_msdos/dir.c index 607f8001bd4..97002f579c3 100644 --- a/sbin/fsck_msdos/dir.c +++ b/sbin/fsck_msdos/dir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dir.c,v 1.13 2001/07/07 18:26:12 deraadt Exp $ */ +/* $OpenBSD: dir.c,v 1.14 2002/02/16 21:27:34 millert Exp $ */ /* $NetBSD: dir.c,v 1.11 1997/10/17 11:19:35 ws Exp $ */ /* @@ -37,7 +37,7 @@ #ifndef lint -static char rcsid[] = "$OpenBSD: dir.c,v 1.13 2001/07/07 18:26:12 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: dir.c,v 1.14 2002/02/16 21:27:34 millert Exp $"; #endif /* not lint */ #include <stdio.h> @@ -91,12 +91,12 @@ static char rcsid[] = "$OpenBSD: dir.c,v 1.13 2001/07/07 18:26:12 deraadt Exp $" #define DD_YEAR_SHIFT 9 /* dir.c */ -static struct dosDirEntry *newDosDirEntry __P((void)); -static void freeDosDirEntry __P((struct dosDirEntry *)); -static struct dirTodoNode *newDirTodo __P((void)); -static void freeDirTodo __P((struct dirTodoNode *)); -static char *fullpath __P((struct dosDirEntry *)); -static u_char calcShortSum __P((u_char *)); +static struct dosDirEntry *newDosDirEntry(void); +static void freeDosDirEntry(struct dosDirEntry *); +static struct dirTodoNode *newDirTodo(void); +static void freeDirTodo(struct dirTodoNode *); +static char *fullpath(struct dosDirEntry *); +static u_char calcShortSum(u_char *); static int delete __P((int, struct bootblock *, struct fatEntry *, cl_t, int, cl_t, int, int)); static int removede __P((int, struct bootblock *, struct fatEntry *, u_char *, diff --git a/sbin/fsck_msdos/ext.h b/sbin/fsck_msdos/ext.h index 5df7e5ecc70..98022d201af 100644 --- a/sbin/fsck_msdos/ext.h +++ b/sbin/fsck_msdos/ext.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ext.h,v 1.6 2001/09/19 10:58:07 mpech Exp $ */ +/* $OpenBSD: ext.h,v 1.7 2002/02/16 21:27:34 millert Exp $ */ /* $NetBSD: ext.h,v 1.5 1997/10/17 11:19:48 ws Exp $ */ /* @@ -58,12 +58,12 @@ extern struct dosDirEntry *rootDir; /* * function declarations */ -int ask __P((int, const char *, ...)); +int ask(int, const char *, ...); /* * Check filesystem given as arg */ -int checkfilesys __P((const char *)); +int checkfilesys(const char *); /* * Return values of various functions @@ -79,41 +79,41 @@ int checkfilesys __P((const char *)); * read a boot block in a machine independend fashion and translate * it into our struct bootblock. */ -int readboot __P((int, struct bootblock *)); +int readboot(int, struct bootblock *); /* * Correct the FSInfo block. */ -int writefsinfo __P((int, struct bootblock *)); +int writefsinfo(int, struct bootblock *); /* * Read one of the FAT copies and return a pointer to the new * allocated array holding our description of it. */ -int readfat __P((int, struct bootblock *, int, struct fatEntry **)); +int readfat(int, struct bootblock *, int, struct fatEntry **); /* * Check two FAT copies for consistency and merge changes into the * first if neccessary. */ -int comparefat __P((struct bootblock *, struct fatEntry *, struct fatEntry *, int)); +int comparefat(struct bootblock *, struct fatEntry *, struct fatEntry *, int); /* * Check a FAT */ -int checkfat __P((struct bootblock *, struct fatEntry *)); +int checkfat(struct bootblock *, struct fatEntry *); /* * Write back FAT entries */ -int writefat __P((int, struct bootblock *, struct fatEntry *)); +int writefat(int, struct bootblock *, struct fatEntry *); /* * Read a directory */ -int resetDosDirSection __P((struct bootblock *, struct fatEntry *)); -void finishDosDirSection __P((void)); -int handleDirTree __P((int, struct bootblock *, struct fatEntry *)); +int resetDosDirSection(struct bootblock *, struct fatEntry *); +void finishDosDirSection(void); +int handleDirTree(int, struct bootblock *, struct fatEntry *); /* * Cross-check routines run after everything is completely in memory @@ -121,12 +121,12 @@ int handleDirTree __P((int, struct bootblock *, struct fatEntry *)); /* * Check for lost cluster chains */ -int checklost __P((int, struct bootblock *, struct fatEntry *)); +int checklost(int, struct bootblock *, struct fatEntry *); /* * Try to reconnect a lost cluster chain */ -int reconnect __P((int, struct bootblock *, struct fatEntry *, cl_t)); -void finishlf __P((void)); +int reconnect(int, struct bootblock *, struct fatEntry *, cl_t); +void finishlf(void); /* * Small helper functions @@ -134,11 +134,11 @@ void finishlf __P((void)); /* * Return the type of a reserved cluster as text */ -char *rsrvdcltype __P((cl_t)); +char *rsrvdcltype(cl_t); /* * Clear a cluster chain in a FAT */ -void clearchain __P((struct bootblock *, struct fatEntry *, cl_t)); +void clearchain(struct bootblock *, struct fatEntry *, cl_t); #endif diff --git a/sbin/fsck_msdos/fat.c b/sbin/fsck_msdos/fat.c index 9ed3137ad52..f46c3ca5121 100644 --- a/sbin/fsck_msdos/fat.c +++ b/sbin/fsck_msdos/fat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fat.c,v 1.9 2000/06/28 17:42:06 mickey Exp $ */ +/* $OpenBSD: fat.c,v 1.10 2002/02/16 21:27:34 millert Exp $ */ /* $NetBSD: fat.c,v 1.8 1997/10/17 11:19:53 ws Exp $ */ /* @@ -35,7 +35,7 @@ #ifndef lint -static char rcsid[] = "$OpenBSD: fat.c,v 1.9 2000/06/28 17:42:06 mickey Exp $"; +static char rcsid[] = "$OpenBSD: fat.c,v 1.10 2002/02/16 21:27:34 millert Exp $"; #endif /* not lint */ #include <stdlib.h> @@ -46,9 +46,9 @@ static char rcsid[] = "$OpenBSD: fat.c,v 1.9 2000/06/28 17:42:06 mickey Exp $"; #include "ext.h" -static int checkclnum __P((struct bootblock *, int, cl_t, cl_t *)); -static int clustdiffer __P((cl_t, cl_t *, cl_t *, int)); -static int tryclear __P((struct bootblock *, struct fatEntry *, cl_t, cl_t *)); +static int checkclnum(struct bootblock *, int, cl_t, cl_t *); +static int clustdiffer(cl_t, cl_t *, cl_t *, int); +static int tryclear(struct bootblock *, struct fatEntry *, cl_t, cl_t *); /* * Check a cluster number for valid value diff --git a/sbin/fsck_msdos/main.c b/sbin/fsck_msdos/main.c index aec6ae0acad..e623113d4d0 100644 --- a/sbin/fsck_msdos/main.c +++ b/sbin/fsck_msdos/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.10 2001/09/05 22:32:37 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.11 2002/02/16 21:27:34 millert Exp $ */ /* $NetBSD: main.c,v 1.8 1996/10/17 20:29:53 cgd Exp $ */ /* @@ -35,7 +35,7 @@ #ifndef lint -static char rcsid[] = "$OpenBSD: main.c,v 1.10 2001/09/05 22:32:37 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.11 2002/02/16 21:27:34 millert Exp $"; #endif /* not lint */ #include <stdlib.h> @@ -57,8 +57,8 @@ int alwaysyes; /* assume "yes" for all questions */ int preen; /* set when preening */ int rdonly; /* device is opened read only (supersedes above) */ -static void usage __P((void)); -int main __P((int, char **)); +static void usage(void); +int main(int, char **); static void usage() |