[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 08/24] bsd-user: style tweak: use C not C++ comments
From: |
imp |
Subject: |
[PULL 08/24] bsd-user: style tweak: use C not C++ comments |
Date: |
Fri, 23 Apr 2021 14:39:34 -0600 |
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
- [PULL 02/24] bsd-user: whitespace changes, (continued)
- [PULL 02/24] bsd-user: whitespace changes, imp, 2021/04/23
- [PULL 06/24] bsd-user: style tweak: keyword space (, imp, 2021/04/23
- [PULL 07/24] bsd-user: style tweak: keyword space (, imp, 2021/04/23
- [PULL 04/24] bsd-user: style tweak: keyword space (, imp, 2021/04/23
- [PULL 09/24] bsd-user: style tweak: use C not C++ comments, imp, 2021/04/23
- [PULL 08/24] bsd-user: style tweak: use C not C++ comments,
imp <=
- Re: [PULL 01/24] bsd-user: whitespace changes, Richard Henderson, 2021/04/23