Changeset a000878c in mainline for uspace/app/tetris


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:
uspace/app/tetris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tetris/screen.c

    ra634485 ra000878c  
    7272 * simply literal strings);
    7373 */
    74 static inline void putstr(char *s)
     74static inline void putstr(const char *s)
    7575{
    7676        while (*s)
     
    181181}
    182182
    183 void stop(char *why)
     183void stop(const char *why)
    184184{
    185185        if (isset)
  • uspace/app/tetris/tetris.h

    ra634485 ra000878c  
    186186extern int fits_in(const struct shape *, int);
    187187extern void place(const struct shape *, int, int);
    188 extern void stop(char *);
     188extern void stop(const char *);
    189189
    190190/** @}
Note: See TracChangeset for help on using the changeset viewer.