PERFORCE change 178870 for review
Garrett Cooper
gcooper at FreeBSD.org
Thu May 27 10:28:15 UTC 2010
http://p4web.freebsd.org/@@178870?ac=10
Change 178870 by gcooper at gcooper-bayonetta on 2010/05/27 10:27:37
Low hanging style(8) fixes.
Affected files ...
.. //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/lib/libpkg/pen.c#4 edit
Differences ...
==== //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/lib/libpkg/pen.c#4 (text+ko) ====
@@ -37,7 +37,7 @@
char *
where_playpen(void)
{
- return PenLocation;
+ return PenLocation;
}
/* Find a good place to play. */
@@ -77,22 +77,22 @@
static const char *
pushPen(const char *pen)
{
- if (++pdepth == MAX_STACK)
- errx(2, "%s: stack overflow.\n", __func__);
- pstack[pdepth] = strdup(pen);
+ if (++pdepth == MAX_STACK)
+ errx(2, "%s: stack overflow.\n", __func__);
+ pstack[pdepth] = strdup(pen);
- return pstack[pdepth];
+ return pstack[pdepth];
}
static void
popPen(char *pen)
{
- if (pdepth == -1) {
- pen[0] = '\0';
- return;
- }
- strcpy(pen, pstack[pdepth]);
- free(pstack[pdepth--]);
+ if (pdepth == -1) {
+ pen[0] = '\0';
+ return;
+ }
+ strcpy(pen, pstack[pdepth]);
+ free(pstack[pdepth--]);
}
/*
@@ -162,11 +162,11 @@
off_t
min_free(const char *tmpdir)
{
- struct statfs buf;
+ struct statfs buf;
- if (statfs(tmpdir, &buf) != 0) {
- warn("statfs");
- return -1;
- }
- return (off_t)buf.f_bavail * (off_t)buf.f_bsize;
+ if (statfs(tmpdir, &buf) != 0) {
+ warn("statfs");
+ return -1;
+ }
+ return (off_t)buf.f_bavail * (off_t)buf.f_bsize;
}
More information about the p4-projects
mailing list