summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-12-04 08:53:25 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-12-04 08:53:25 +0000
commit3cada05bfe013a98da7013cf0f9c06cf546a6a84 (patch)
tree15677664b962b48f9ddd502bf80b330fca408887 /cpukit
parent2011-12-03 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-3cada05bfe013a98da7013cf0f9c06cf546a6a84.tar.bz2
2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/shell_cmdset.c: Remove superflous casts.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog4
-rw-r--r--cpukit/libmisc/shell/shell_cmdset.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 4ac17cbd8c..3695d37513 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,7 @@
+2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * libmisc/shell/shell_cmdset.c: Remove superflous casts.
+
2011-12-03 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/termios.c: Make FL_* defines unsigned.
diff --git a/cpukit/libmisc/shell/shell_cmdset.c b/cpukit/libmisc/shell/shell_cmdset.c
index 2abaed9242..8b48847a17 100644
--- a/cpukit/libmisc/shell/shell_cmdset.c
+++ b/cpukit/libmisc/shell/shell_cmdset.c
@@ -59,7 +59,7 @@ rtems_shell_topic_t * rtems_shell_lookup_topic(const char * topic) {
return shell_topic;
shell_topic=shell_topic->next;
}
- return (rtems_shell_topic_t *) NULL;
+ return NULL;
}
/*
@@ -71,7 +71,7 @@ rtems_shell_topic_t * rtems_shell_add_topic(const char * topic) {
if (!rtems_shell_first_topic) {
aux = malloc(sizeof(rtems_shell_topic_t));
aux->topic = topic;
- aux->next = (rtems_shell_topic_t*)NULL;
+ aux->next = NULL;
return rtems_shell_first_topic = aux;
}
current=rtems_shell_first_topic;
@@ -85,7 +85,7 @@ rtems_shell_topic_t * rtems_shell_add_topic(const char * topic) {
}
aux = malloc(sizeof(rtems_shell_topic_t));
aux->topic = topic;
- aux->next = (rtems_shell_topic_t*)NULL;
+ aux->next = NULL;
current->next = aux;
return aux;
}
@@ -100,7 +100,7 @@ rtems_shell_cmd_t * rtems_shell_lookup_cmd(const char * cmd) {
if (!strcmp(shell_cmd->name,cmd)) return shell_cmd;
shell_cmd=shell_cmd->next;
};
- return (rtems_shell_cmd_t *) NULL;
+ return NULL;
}
/*