diff options
author | arved <arved@FreeBSD.org> | 2003-02-16 01:21:31 +0000 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2003-02-16 01:21:31 +0000 |
commit | 399a62c9f50bf46c7fee961bdedba7859350a7d8 (patch) | |
tree | 591e5ee3ee94439002ed6f135098203966b0ae4c /sysutils | |
parent | 5f96b87c68f9f038c50007967d5c3456da63d321 (diff) | |
download | FreeBSD-ports-399a62c9f50bf46c7fee961bdedba7859350a7d8.zip FreeBSD-ports-399a62c9f50bf46c7fee961bdedba7859350a7d8.tar.gz |
Fix missing digit in osreldat.
PR: 47553
Submitted by: Oliver Lehmann <lehmann@ans-netz.de>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/and/files/patch-and-OpenBSD.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysutils/and/files/patch-and-OpenBSD.c b/sysutils/and/files/patch-and-OpenBSD.c index 5d94253..d0103b0 100644 --- a/sysutils/and/files/patch-and-OpenBSD.c +++ b/sysutils/and/files/patch-and-OpenBSD.c @@ -4,13 +4,13 @@ abort(); } if (openbsd_next >= openbsd_nproc) return NULL; -+#if defined(__FreeBSD__) && __FreeBSD_version >= 50014 ++#if defined(__FreeBSD__) && __FreeBSD_version >= 500014 + strncpy(openbsd_proc.command,openbsd_pt[openbsd_next].ki_comm,1023); +#else strncpy(openbsd_proc.command,openbsd_pt[openbsd_next].kp_proc.p_comm,1023); +#endif openbsd_proc.command[1023] = 0; -+#if defined(__FreeBSD__) && __FreeBSD_version >= 50014 ++#if defined(__FreeBSD__) && __FreeBSD_version >= 500014 + openbsd_proc.pid = openbsd_pt[openbsd_next].ki_pid; + openbsd_proc.nice = openbsd_pt[openbsd_next].ki_nice-20; + openbsd_proc.uid = openbsd_pt[openbsd_next].ki_ruid; @@ -22,7 +22,7 @@ openbsd_proc.gid = openbsd_pt[openbsd_next].kp_eproc.e_pcred.p_rgid; +#endif /* Adapted from top(1) port, as found in the misc@openbsd.org archive */ -+#if defined(__FreeBSD__) && __FreeBSD_version >= 50014 ++#if defined(__FreeBSD__) && __FreeBSD_version >= 500014 + /* XXX: Accessing ki_paddr causes sig10 ... + openbsd_proc.utime = (openbsd_pt[openbsd_next].ki_paddr->p_uticks + + openbsd_pt[openbsd_next].ki_paddr->p_sticks + |