diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-06 17:00:09 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-06 21:44:36 -0700 |
commit | 02906bf1766ad1769e03f9372611087389ee23b0 (patch) | |
tree | 461fca85f78e124bdc68ace534401d4e6af6b03e /scope.c | |
parent | 6dde56a016d502cf422b5c54247e225bb13e26d0 (diff) | |
download | xscope-02906bf1766ad1769e03f9372611087389ee23b0.tar.gz |
Constify many char pointers
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'scope.c')
-rw-r--r-- | scope.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -145,9 +145,10 @@ typedef struct _CMDFunc { CMDResult (*func)(int argc, char **argv); char *usage; char *help; -} CMDFuncRec, *CMDFuncPtr; +} CMDFuncRec; +typedef const CMDFuncRec *CMDFuncPtr; -CMDFuncRec CMDFuncs[] = { +static const CMDFuncRec CMDFuncs[] = { "audio", "a", CMDAudio, "[a]udio", "Set audio output level\n", "break", "b", CMDBreak, "[b]reak", @@ -236,7 +237,7 @@ CMDStringToInt ( static CMDFuncPtr CMDStringToFunc ( - char *name) + const char *name) { int i; for (i = 0; i < NumCMDFuncs; i++) @@ -380,7 +381,7 @@ int breakPointNumber; void TestBreakPoints ( - unsigned char *buf, + const unsigned char *buf, long n) { BP *bp; |