projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libustcomm: change char * to const char * where relevant
[ust.git]
/
libustcomm
/
ustcomm.c
diff --git
a/libustcomm/ustcomm.c
b/libustcomm/ustcomm.c
index 6ddd6d82a7421303b339e3ff0ed98b328fd25885..fd5e360e343a7e495330115d060396bdf4179365 100644
(file)
--- a/
libustcomm/ustcomm.c
+++ b/
libustcomm/ustcomm.c
@@
-612,7
+612,7
@@
void ustcomm_fini_app(struct ustcomm_app *handle)
}
}
}
}
-static c
har *find_tok(
char *str)
+static c
onst char *find_tok(const
char *str)
{
while(*str == ' ') {
str++;
{
while(*str == ' ') {
str++;
@@
-624,7
+624,7
@@
static char *find_tok(char *str)
return str;
}
return str;
}
-static c
har *find_sep(
char *str)
+static c
onst char *find_sep(const
char *str)
{
while(*str != ' ') {
str++;
{
while(*str != ' ') {
str++;
@@
-636,11
+636,11
@@
static char *find_sep(char *str)
return str;
}
return str;
}
-int nth_token_is(c
har *str,
char *token, int tok_no)
+int nth_token_is(c
onst char *str, const
char *token, int tok_no)
{
int i;
{
int i;
- char *start;
- char *end;
+ c
onst c
har *start;
+ c
onst c
har *end;
for(i=0; i<=tok_no; i++) {
str = find_tok(str);
for(i=0; i<=tok_no; i++) {
str = find_tok(str);
@@
-665,12
+665,12
@@
int nth_token_is(char *str, char *token, int tok_no)
return 1;
}
return 1;
}
-char *nth_token(char *str, int tok_no)
+char *nth_token(c
onst c
har *str, int tok_no)
{
static char *retval = NULL;
int i;
{
static char *retval = NULL;
int i;
- char *start;
- char *end;
+ c
onst c
har *start;
+ c
onst c
har *end;
for(i=0; i<=tok_no; i++) {
str = find_tok(str);
for(i=0; i<=tok_no; i++) {
str = find_tok(str);
This page took
0.036825 seconds
and
4
git commands to generate.