Changeset a000878c in mainline for kernel/test/print


Ignore:
Timestamp:
2010-02-25T19:11:25Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
958de16
Parents:
a634485
Message:

make sure that all statically allocated strings are declared as "const char *"
and are treated as read-only

Location:
kernel/test/print
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/print/print1.c

    ra634485 ra000878c  
    3030#include <test.h>
    3131
    32 char *test_print1(void)
     32const char *test_print1(void)
    3333{
    3434        TPRINTF("Testing printf(\"%%*.*s\", 5, 3, \"text\"):\n");
  • kernel/test/print/print2.c

    ra634485 ra000878c  
    3030#include <test.h>
    3131
    32 char *test_print2(void)
     32const char *test_print2(void)
    3333{
    3434        TPRINTF("Testing printf(\"%%c %%3.2c %%-3.2c %%2.3c %%-2.3c\", 'a', 'b', 'c', 'd', 'e'):\n");
  • kernel/test/print/print3.c

    ra634485 ra000878c  
    3333#define BUFFER_SIZE  32
    3434
    35 char *test_print3(void)
     35const char *test_print3(void)
    3636{
    3737        char buffer[BUFFER_SIZE];
  • kernel/test/print/print4.c

    ra634485 ra000878c  
    3030#include <test.h>
    3131
    32 char *test_print4(void)
     32const char *test_print4(void)
    3333{
    3434        TPRINTF("ASCII printable characters (32 - 127) using printf(\"%%c\") and printf(\"%%lc\"):\n");
Note: See TracChangeset for help on using the changeset viewer.