Changeset a000878c in mainline for kernel/generic/src/console


Ignore:
Timestamp:
2010-02-25T19:11:25Z (15 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/generic/src/console
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/chardev.c

    ra634485 ra000878c  
    4747 *
    4848 */
    49 void indev_initialize(char *name, indev_t *indev,
     49void indev_initialize(const char *name, indev_t *indev,
    5050    indev_operations_t *op)
    5151{
     
    130130 *
    131131 */
    132 void outdev_initialize(char *name, outdev_t *outdev,
     132void outdev_initialize(const char *name, outdev_t *outdev,
    133133    outdev_operations_t *op)
    134134{
  • kernel/generic/src/console/cmd.c

    ra634485 ra000878c  
    10331033        /* Execute the test */
    10341034        test_quiet = false;
    1035         char *ret = test->entry();
     1035        const char *ret = test->entry();
    10361036       
    10371037        /* Update and read thread accounting */
     
    10861086                /* Execute the test */
    10871087                test_quiet = true;
    1088                 char * ret = test->entry();
     1088                const char *ret = test->entry();
    10891089               
    10901090                /* Update and read thread accounting */
  • kernel/generic/src/console/kconsole.c

    ra634485 ra000878c  
    643643 *
    644644 */
    645 void kconsole(char *prompt, char *msg, bool kcon)
     645void kconsole(const char *prompt, const char *msg, bool kcon)
    646646{
    647647        if (!stdin) {
Note: See TracChangeset for help on using the changeset viewer.