util-prototypes-20090315

LICENSE IPL10
FIXES 124247

prototype the util directory
This commit is contained in:
Simon Wilkinson 2009-03-16 02:00:27 +00:00 committed by Derrick Brashear
parent 00fd29251e
commit 47451b4c20
2 changed files with 16 additions and 18 deletions

View File

@ -79,11 +79,11 @@ static struct statfs *_fs_buf;
static struct statfs *_fs_ptr;
static int _fs_count;
static error __P((int));
static fstabscan __P((void));
static void error(int);
static int fstabscan(void);
static
fstabscan()
static int
fstabscan(void)
{
if (_fs_count <= 0)
return (0);
@ -101,7 +101,7 @@ fstabscan()
}
struct fstab *
getfsent()
getfsent(void)
{
if (!_fs_buf && !setfsent() || !fstabscan())
return ((struct fstab *)NULL);
@ -109,8 +109,7 @@ getfsent()
}
struct fstab *
getfsspec(name)
register const char *name;
getfsspec(const char *name)
{
if (setfsent())
while (fstabscan())
@ -120,8 +119,7 @@ getfsspec(name)
}
struct fstab *
getfsfile(name)
register const char *name;
getfsfile(const char *name)
{
if (setfsent())
while (fstabscan())
@ -130,7 +128,8 @@ getfsfile(name)
return ((struct fstab *)NULL);
}
setfsent()
int
setfsent(void)
{
long bufsize;
@ -156,7 +155,7 @@ setfsent()
}
void
endfsent()
endfsent(void)
{
if (_fs_buf) {
free(_fs_buf);
@ -165,9 +164,8 @@ endfsent()
_fs_count = 0;
}
static
error(err)
int err;
static void
error(int err)
{
char *p;

View File

@ -258,7 +258,7 @@ re_exec(register char *p1)
do {
if (*p1 != c)
continue;
if (rv = advance(p1, p2))
if ((rv = advance(p1, p2)))
return (rv);
} while (*p1++);
return (0);
@ -267,7 +267,7 @@ re_exec(register char *p1)
* regular algorithm
*/
do
if (rv = advance(p1, p2))
if ((rv = advance(p1, p2)))
return (rv);
while (*p1++);
return (0);
@ -343,7 +343,7 @@ advance(register char *lp, register char *ep)
while (backref(i, lp))
lp += ct;
while (lp >= curlp) {
if (rv = advance(lp, ep))
if ((rv = advance(lp, ep)))
return (rv);
lp -= ct;
}
@ -370,7 +370,7 @@ advance(register char *lp, register char *ep)
star:
do {
lp--;
if (rv = advance(lp, ep))
if ((rv = advance(lp, ep)))
return (rv);
} while (lp > curlp);
return (0);