qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: imp@bsdimp.com
To: qemu-devel@nongnu.org
Cc: kevans@freebsd.org, arichardson@freebsd.org,
	Warner Losh <imp@bsdimp.com>
Subject: [PULL 08/24] bsd-user: style tweak: use C not C++ comments
Date: Fri, 23 Apr 2021 14:39:34 -0600	[thread overview]
Message-ID: <20210423203935.78225-8-imp@bsdimp.com> (raw)
In-Reply-To: <20210423203935.78225-1-imp@bsdimp.com>

From: Warner Losh <imp@bsdimp.com>

Signed-off-by: Warner Losh <imp@bsdimp.com>
---
 bsd-user/elfload.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c
index 3c9d8c2845..87154283ef 100644
--- a/bsd-user/elfload.c
+++ b/bsd-user/elfload.c
@@ -1010,7 +1010,7 @@ static const char *lookup_symbolxx(struct syminfo *s, target_ulong orig_addr)
     struct elf_sym *syms = s->disas_symtab.elf64;
 #endif
 
-    // binary search
+    /* binary search */
     struct elf_sym *sym;
 
     sym = bsearch(&orig_addr, syms, s->disas_num_syms, sizeof(*syms), symfind);
@@ -1092,7 +1092,7 @@ static void load_symbols(struct elfhdr *hdr, int fd)
 #ifdef BSWAP_NEEDED
         bswap_sym(syms + i);
 #endif
-        // Throw away entries which we do not need.
+        /* Throw away entries which we do not need. */
         if (syms[i].st_shndx == SHN_UNDEF ||
                 syms[i].st_shndx >= SHN_LORESERVE ||
                 ELF_ST_TYPE(syms[i].st_info) != STT_FUNC) {
-- 
2.22.1



  parent reply	other threads:[~2021-04-23 20:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-23 20:39 [PULL 01/24] bsd-user: whitespace changes imp
2021-04-23 20:39 ` [PULL 02/24] " imp
2021-04-23 23:02   ` Richard Henderson
2021-04-23 20:39 ` [PULL 03/24] " imp
2021-04-23 23:03   ` Richard Henderson
2021-04-23 20:39 ` [PULL 04/24] bsd-user: style tweak: keyword space ( imp
2021-04-23 23:03   ` Richard Henderson
2021-04-23 20:39 ` [PULL 05/24] " imp
2021-04-23 23:03   ` Richard Henderson
2021-04-23 20:39 ` [PULL 06/24] " imp
2021-04-23 23:03   ` Richard Henderson
2021-04-23 20:39 ` [PULL 07/24] " imp
2021-04-23 23:03   ` Richard Henderson
2021-04-23 20:39 ` imp [this message]
2021-04-23 23:04   ` [PULL 08/24] bsd-user: style tweak: use C not C++ comments Richard Henderson
2021-04-23 20:39 ` [PULL 09/24] " imp
2021-04-23 23:04   ` Richard Henderson
2021-04-23 23:02 ` [PULL 01/24] bsd-user: whitespace changes Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210423203935.78225-8-imp@bsdimp.com \
    --to=imp@bsdimp.com \
    --cc=arichardson@freebsd.org \
    --cc=kevans@freebsd.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).