From nobody Sat Aug 03 01:03:48 2024 X-Original-To: doc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WbPbS3vYqz5RYBj for ; Sat, 03 Aug 2024 01:03:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WbPbS1JQWz4s8F for ; Sat, 3 Aug 2024 01:03:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722647028; a=rsa-sha256; cv=none; b=ui/yzOFgMr0VITDdzDsc0xBt/aXr0+J65a4RVKzJgaR+2yxXkd25s+AOZl+kZFXP213d1u 1x0KAlOLp6m2fQ0nhKSRK3EvS6piizEOVuXrHl5hXWIkZsFJYECfZRSWROAHjvOWXJOcHE ig3JrDiwbgwaniwbQDzLwFbaYJbPscZIvQtY2f9W3KgewIIb/uABNxqE3P8LQK783GqKC9 Ow0jOjIXQIcX3MzZgikv+eTZHGzvlB+A2/3wiaOibyU3Y2bSQHm/9fqZpopjonsFyjHhug TzEm64YqDB7UCdRCTbF+Xc+629DyljEj7LDc1zKAlOQKwru0Ca5ScrkrQcNtzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722647028; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hMZMxTwwogxBXXfmMmPUFqrgDG/Vh4ES/XrhpAPy2CM=; b=YRceMXjdmhnAbORZb1+8E0ngwvUva64qVvNseJLCUS9tvSInoqg0bn1vJTkQokcJv4JnAR cV/4+ve7FBFz20yEmV9jeUU3gACygz61dRDcAoJHFO9mfEwjq/2r7JJLmtq8DJXr3Gx0bF pedxoRFmOODNCk6K3WHdQ1WynSG7pzr138Gj+BHg0cI4AqVakzaRpK4X8YcaALghFsMiTi 1hbPvYjWHHXlCXhMQYc49TmwiLEWOusTlFFOz9z1q0Wj3ik+OZWvyzzeC/ULXbv3ht0eiY +YXcLZZKufaWLryL/DCev88xkxoWs4Yg3TOWg8WeE0bOBxt9azMn/9/Oq18VuA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WbPbS0wZTzrcY for ; Sat, 3 Aug 2024 01:03:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 47313mds066874 for ; Sat, 3 Aug 2024 01:03:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47313mRV066870 for doc@FreeBSD.org; Sat, 3 Aug 2024 01:03:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 280566] tree(3) man page: Fix example source code. Date: Sat, 03 Aug 2024 01:03:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: maxim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280566 Maxim Konovalov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |maxim@FreeBSD.org --- Comment #1 from Maxim Konovalov --- Hi, Thanks for the patch! Just for the record, it seems that there are several separate issues with t= he example, specifically: (1) RB_AUGMENT macro should be defined as early as possible. Otherwise it = is no-op and the program doesn't work as intended, e.g., it doesn't calculate = sum of the tree elements. (2) Man page formatting error that leads to a compilation error if you try = to copy-paste the code. (3) There is also a missed new line between the tree structure content and = the sum of the elements but it looks minor. I created a slightly better looking to me patch to address all of the above. Dear Hodong, are you good with this one? Thanks, Maxim --=20 You are receiving this mail because: You are on the CC list for the bug.=