summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2012-12-17 10:51:22 +0000
committerpjd <pjd@FreeBSD.org>2012-12-17 10:51:22 +0000
commitdbdae53685526d308bb50e7a294318fa9c228178 (patch)
tree172d9fd62992ff8dd4a937866670364e80d445c0
parentec8b5e00063dcc91f535c02ac479be8a3164c642 (diff)
downloadFreeBSD-src-dbdae53685526d308bb50e7a294318fa9c228178.zip
FreeBSD-src-dbdae53685526d308bb50e7a294318fa9c228178.tar.gz
Minor style tweaks.
Obtained from: WHEEL Systems
-rw-r--r--sys/kern/kern_sig.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 97a4858..578bfa7 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -3113,9 +3113,8 @@ expand_name(const char *comm, uid_t uid, pid_t pid, struct thread *td,
}
free(hostname, M_TEMP);
#ifdef COMPRESS_USER_CORES
- if (compress) {
+ if (compress)
sbuf_printf(&sb, GZ_SUFFIX);
- }
#endif
if (sbuf_error(&sb) != 0) {
log(LOG_ERR, "pid %ld (%s), uid (%lu): corename is too "
@@ -3190,8 +3189,8 @@ static int
coredump(struct thread *td)
{
struct proc *p = td->td_proc;
- register struct vnode *vp;
- register struct ucred *cred = td->td_ucred;
+ struct ucred *cred = td->td_ucred;
+ struct vnode *vp;
struct flock lf;
struct nameidata nd;
struct vattr vattr;
@@ -3251,8 +3250,8 @@ restart:
vp = nd.ni_vp;
/* Don't dump to non-regular files or files with links. */
- if (vp->v_type != VREG ||
- VOP_GETATTR(vp, &vattr, cred) || vattr.va_nlink != 1) {
+ if (vp->v_type != VREG || VOP_GETATTR(vp, &vattr, cred) != 0 ||
+ vattr.va_nlink != 1) {
VOP_UNLOCK(vp, 0);
error = EFAULT;
goto close;
OpenPOWER on IntegriCloud