From nobody Fri Aug 02 04:33:40 2024 X-Original-To: bugs@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 4WZtJ51gbkz5S8kq for ; Fri, 02 Aug 2024 04:33:41 +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 4WZtJ43FcCz4K1r for ; Fri, 2 Aug 2024 04:33:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722573220; a=rsa-sha256; cv=none; b=J/vzq29LXoLoL/q47K6T+ms32hImpdWIe6qqJ2sJWaWmplRibmrsTdS9c8AmsBpmDcgZJT 6FvR4ye5DmQkTNFy8x5e+HgRBalIUk+NLc9l77wy0VSivc9Llnd/PhhgoRiNw7caoGA7xt yi9j+/pEpjcPGd4ReUVpEtttKBVK29xGLVD0B9mvy2OY1k3mfZwiXDPzcR48Njf+12vHRj ov158sTiAdnskXhN9F+FFdBmDVTtgo0OUW0dS/o8t2VGPsaNljMWFxCFguv59nCVjo6keO D0wKHsOntP+HidzvVBOs87s3AxEnGOnB+enfUH6hWiDsK5pfFRxTbRw4Mmfl8A== 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=1722573220; 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; bh=QYA30jLxt1FexKUCK8WpMrDaj2irntPxDwP0wnmMcL4=; b=e7FIwrSNxPKfuJorWNhkdu98qANKo+xcRuyL3OptukF/s6/Gdyw1DfgBC5jdIe3dRigxLI MSymAZ1bFYDgkpJ3tyT6onkRf1+92fXiUMZzZT9Eu5MLsmrUWcqtyLYEbFO9TZKB0eK3zt 9L9jbh7l0R5eZtRn77pLnb4VnNw9Rm2aVYc8Ru7Hd7YCoDg3HTOYOal0P1zKYU10wHde79 HfRm9Z4xofumCj7Ne/JL9usdRwbL0froNNUf6iQ66ndTmYG6meY0pPIq867PDlyffNj+vv xQg9q8OO9ZvtcDI/HXo2VTWdryFulzyITH79JqOrlblV1QVyPkvBUiRiHr4PBg== 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 4WZtJ42rWpz1Ctc for ; Fri, 2 Aug 2024 04:33:40 +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 4724XeNs067117 for ; Fri, 2 Aug 2024 04:33:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4724Xe4Q067116 for bugs@FreeBSD.org; Fri, 2 Aug 2024 04:33:40 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: bugs@FreeBSD.org Subject: [Bug 280566] tree(3) man page: Fix example source code. Date: Fri, 02 Aug 2024 04:33:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: hodong@nimfsoft.art X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280566 Bug ID: 280566 Summary: tree(3) man page: Fix example source code. Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Manual Pages Assignee: bugs@FreeBSD.org Reporter: hodong@nimfsoft.art CC: doc@FreeBSD.org Created attachment 252444 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D252444&action= =3Dedit Fix the example source code in tree(3) man page EXAMPLES. The example source code in the tree(3) manual page causes compilation error. $ cc -Wall example.c -o example example.c:25:9: warning: non-void function does not return a value [-Wreturn-type] 25 | } | ^ example.c:75:24: warning: missing terminating '"' character [-Winvalid-pp-token] 75 | printf("Sum of values =3D %d0, RB_ROOT(&head)->sum); | ^ example.c:75:24: error: expected expression example.c:78:10: error: expected '}' 78 | } | ^ example.c:60:9: note: to match this '{' 60 | { | ^ 2 warnings and 2 errors generated. This patch fixes errors. --=20 You are receiving this mail because: You are the assignee for the bug.=