aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-09-19 20:34:23 -0600
committerTom Tromey <tom@tromey.com>2023-09-20 11:45:16 -0600
commitef0f16ccf8c3f09a3e986329c1428789ef17f17f (patch)
treeeeec07619180cc7c3ad56e555fdf914d9b863595 /gdbsupport
parent0b7de6d3ee07653e97e65a2968742c93b7102f62 (diff)
downloadgdb-ef0f16ccf8c3f09a3e986329c1428789ef17f17f.zip
gdb-ef0f16ccf8c3f09a3e986329c1428789ef17f17f.tar.gz
gdb-ef0f16ccf8c3f09a3e986329c1428789ef17f17f.tar.bz2
Remove explanatory comments from includes
I noticed a comment by an include and remembered that I think these don't really provide much value -- sometimes they are just editorial, and sometimes they are obsolete. I think it's better to just remove them. Tested by rebuilding. Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdbsupport')
-rw-r--r--gdbsupport/common-defs.h2
-rw-r--r--gdbsupport/gdb_wait.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/gdbsupport/common-defs.h b/gdbsupport/common-defs.h
index 72c1c51..5e8ebab 100644
--- a/gdbsupport/common-defs.h
+++ b/gdbsupport/common-defs.h
@@ -96,7 +96,7 @@
#include <stdint.h>
#include <string.h>
#ifdef HAVE_STRINGS_H
-#include <strings.h> /* for strcasecmp and strncasecmp */
+#include <strings.h>
#endif
#include <errno.h>
#if HAVE_ALLOCA_H
diff --git a/gdbsupport/gdb_wait.h b/gdbsupport/gdb_wait.h
index f8d44c9..d1f9ccd 100644
--- a/gdbsupport/gdb_wait.h
+++ b/gdbsupport/gdb_wait.h
@@ -20,10 +20,10 @@
#define COMMON_GDB_WAIT_H
#ifdef HAVE_SYS_WAIT_H
-#include <sys/wait.h> /* POSIX */
+#include <sys/wait.h>
#else
#ifdef HAVE_WAIT_H
-#include <wait.h> /* legacy */
+#include <wait.h>
#endif
#endif