~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to uspace/app/bdsh/cmds/modules/cat/cat.c

  • Committer: Martin Decky
  • Date: 2010-02-25 19:11:25 UTC
  • Revision ID: martin@uranus.dsrg.hide.ms.mff.cuni.cz-20100225191125-kbzwwihgu0uj0dss
make sure that all statically allocated strings are declared as "const char *"
and are treated as read-only

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#include "cat.h"
43
43
#include "cmds.h"
44
44
 
45
 
static char *cmdname = "cat";
 
45
static const char *cmdname = "cat";
46
46
#define CAT_VERSION "0.0.1"
47
47
#define CAT_DEFAULT_BUFLEN 1024
48
48
 
49
 
static char *cat_oops = "That option is not yet supported\n";
 
49
static const char *cat_oops = "That option is not yet supported\n";
50
50
 
51
51
static struct option const long_options[] = {
52
52
        { "help", no_argument, 0, 'h' },