summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 17:00:09 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 21:44:36 -0700
commit02906bf1766ad1769e03f9372611087389ee23b0 (patch)
tree461fca85f78e124bdc68ace534401d4e6af6b03e /scope.c
parent6dde56a016d502cf422b5c54247e225bb13e26d0 (diff)
downloadxscope-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.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/scope.c b/scope.c
index 3a30ce1..8545930 100644
--- a/scope.c
+++ b/scope.c
@@ -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;