summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--cc3200/ftp/ftp.c7
-rw-r--r--cc3200/main.c7
-rw-r--r--cc3200/util/std.h3
3 files changed, 7 insertions, 10 deletions
diff --git a/cc3200/ftp/ftp.c b/cc3200/ftp/ftp.c
index 679c325613..ebf7861a92 100644
--- a/cc3200/ftp/ftp.c
+++ b/cc3200/ftp/ftp.c
@@ -932,6 +932,13 @@ static void ftp_close_cmd_data (void) {
ftp_close_filesystem_on_error ();
}
+static void stoupper (char *str) {
+ while (str && *str != '\0') {
+ *str = (char)unichar_toupper((int)(*str));
+ str++;
+ }
+}
+
static ftp_cmd_index_t ftp_pop_command (char **str) {
char _cmd[FTP_CMD_SIZE_MAX];
ftp_pop_param (str, _cmd);
diff --git a/cc3200/main.c b/cc3200/main.c
index 06b3604b67..7c6c4b545d 100644
--- a/cc3200/main.c
+++ b/cc3200/main.c
@@ -98,13 +98,6 @@ int main (void) {
for ( ; ; );
}
-void stoupper (char *str) {
- while (str && *str != '\0') {
- *str = (char)toupper((int)(*str));
- str++;
- }
-}
-
// We need this when configSUPPORT_STATIC_ALLOCATION is enabled
void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer,
StackType_t **ppxIdleTaskStackBuffer,
diff --git a/cc3200/util/std.h b/cc3200/util/std.h
index a74c90e25a..6adcb94632 100644
--- a/cc3200/util/std.h
+++ b/cc3200/util/std.h
@@ -31,6 +31,3 @@ typedef unsigned int size_t;
int printf(const char *fmt, ...);
int snprintf(char *str, size_t size, const char *fmt, ...);
-
-// Convenience function, defined in main.c.
-void stoupper (char *str);