summaryrefslogtreecommitdiffstats
path: root/sys/dev/uart/uart_subr.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-12-13 13:32:56 +0000
committered <ed@FreeBSD.org>2011-12-13 13:32:56 +0000
commit0bcfe62162c6317108fed5c0aabb5ce3d4a9a2aa (patch)
treeff467d16b69860d02d290f3c005240ea4a39828c /sys/dev/uart/uart_subr.c
parentb87df3a8d39d015de9da414c9d47a28b51a5e163 (diff)
downloadFreeBSD-src-0bcfe62162c6317108fed5c0aabb5ce3d4a9a2aa.zip
FreeBSD-src-0bcfe62162c6317108fed5c0aabb5ce3d4a9a2aa.tar.gz
Replace __const by const in all non-contributed source code.
As C1X is close to being released, there is no need to wrap around a feature that is already part of C90. Most of these files already use `const' in different placed as well.
Diffstat (limited to 'sys/dev/uart/uart_subr.c')
-rw-r--r--sys/dev/uart/uart_subr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/uart/uart_subr.c b/sys/dev/uart/uart_subr.c
index 6b32c24..5a3f16f 100644
--- a/sys/dev/uart/uart_subr.c
+++ b/sys/dev/uart/uart_subr.c
@@ -56,13 +56,13 @@ static struct uart_class *uart_classes[] = {
static size_t uart_nclasses = sizeof(uart_classes) / sizeof(uart_classes[0]);
static bus_addr_t
-uart_parse_addr(__const char **p)
+uart_parse_addr(const char **p)
{
return (strtoul(*p, (char**)(uintptr_t)p, 0));
}
static struct uart_class *
-uart_parse_class(struct uart_class *class, __const char **p)
+uart_parse_class(struct uart_class *class, const char **p)
{
struct uart_class *uc;
const char *nm;
@@ -84,13 +84,13 @@ uart_parse_class(struct uart_class *class, __const char **p)
}
static long
-uart_parse_long(__const char **p)
+uart_parse_long(const char **p)
{
return (strtol(*p, (char**)(uintptr_t)p, 0));
}
static int
-uart_parse_parity(__const char **p)
+uart_parse_parity(const char **p)
{
if (!strncmp(*p, "even", 4)) {
*p += 4;
@@ -116,7 +116,7 @@ uart_parse_parity(__const char **p)
}
static int
-uart_parse_tag(__const char **p)
+uart_parse_tag(const char **p)
{
int tag;
@@ -192,7 +192,7 @@ out:
int
uart_getenv(int devtype, struct uart_devinfo *di, struct uart_class *class)
{
- __const char *spec;
+ const char *spec;
bus_addr_t addr = ~0U;
int error;
OpenPOWER on IntegriCloud