aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez>2005-03-03 11:01:46 +0000
committerantirez <antirez>2005-03-03 11:01:46 +0000
commite2f0a7ee29687da26879994510366f49e3f66339 (patch)
tree4be47dccad0e3474815603d42843f4156cae3b2b
parent482f075fe6602d409a789003655c27cb051f17fd (diff)
downloadjimtcl-e2f0a7ee29687da26879994510366f49e3f66339.zip
jimtcl-e2f0a7ee29687da26879994510366f49e3f66339.tar.gz
jimtcl-e2f0a7ee29687da26879994510366f49e3f66339.tar.bz2
Fixed a minor typo introduced with const-safeness patch.
-rw-r--r--jim-posix.c15
-rw-r--r--jim.h2
2 files changed, 10 insertions, 7 deletions
diff --git a/jim-posix.c b/jim-posix.c
index ca230e4..3d62586 100644
--- a/jim-posix.c
+++ b/jim-posix.c
@@ -13,7 +13,8 @@ static void Jim_PosixSetError(Jim_Interp *interp)
Jim_SetResultString(interp, strerror(errno), -1);
}
-static int Jim_PosixForkCommand(Jim_Interp *interp, int argc, Jim_Obj **argv)
+static int Jim_PosixForkCommand(Jim_Interp *interp, int argc,
+ Jim_Obj *const *argv)
{
pid_t pid;
argv = argv; /* not used */
@@ -30,7 +31,8 @@ static int Jim_PosixForkCommand(Jim_Interp *interp, int argc, Jim_Obj **argv)
return JIM_OK;
}
-static int Jim_PosixSleepCommand(Jim_Interp *interp, int argc, Jim_Obj **argv)
+static int Jim_PosixSleepCommand(Jim_Interp *interp, int argc,
+ Jim_Obj *const *argv)
{
long longValue;
@@ -44,7 +46,8 @@ static int Jim_PosixSleepCommand(Jim_Interp *interp, int argc, Jim_Obj **argv)
return JIM_OK;
}
-static int Jim_PosixGetidsCommand(Jim_Interp *interp, int argc, Jim_Obj **argv)
+static int Jim_PosixGetidsCommand(Jim_Interp *interp, int argc,
+ Jim_Obj *const *argv)
{
Jim_Obj *objv[8];
if (argc != 1) {
@@ -65,7 +68,7 @@ static int Jim_PosixGetidsCommand(Jim_Interp *interp, int argc, Jim_Obj **argv)
#define JIM_HOST_NAME_MAX 1024
static int Jim_PosixGethostnameCommand(Jim_Interp *interp, int argc,
- Jim_Obj **argv)
+ Jim_Obj *const *argv)
{
char buf[JIM_HOST_NAME_MAX];
@@ -82,9 +85,9 @@ static int Jim_PosixGethostnameCommand(Jim_Interp *interp, int argc,
}
static int Jim_PosixSethostnameCommand(Jim_Interp *interp, int argc,
- Jim_Obj **argv)
+ Jim_Obj *const *argv)
{
- char *hostname;
+ const char *hostname;
int len;
if (argc != 2) {
diff --git a/jim.h b/jim.h
index 3a2e9b9..e857f10 100644
--- a/jim.h
+++ b/jim.h
@@ -653,7 +653,7 @@ JIM_STATIC void JIM_API(Jim_SetDouble)(Jim_Interp *interp, Jim_Obj *objPtr,
JIM_STATIC Jim_Obj * JIM_API(Jim_NewDoubleObj)(Jim_Interp *interp, double doubleValue);
/* shared strings */
-JIM_STATIC const char JIM_API(*Jim_GetSharedString) (Jim_Interp *interp,
+JIM_STATIC const char * JIM_API(Jim_GetSharedString) (Jim_Interp *interp,
const char *str);
JIM_STATIC void JIM_API(Jim_ReleaseSharedString) (Jim_Interp *interp,
const char *str);