quick and dirty fix for message maximum length bug
[ust.git] / libustcomm / ustcomm.c
index 6ddd6d82a7421303b339e3ff0ed98b328fd25885..4d6a6509dba71ac4a1333034de403930437f25b6 100644 (file)
@@ -35,7 +35,7 @@
 
 #define UNIX_PATH_MAX 108
 
-#define MSG_MAX 1000
+#define MSG_MAX 10000
 
 /* FIXME: ustcomm blocks on message sending, which might be problematic in
  * some cases. Fix the poll() usage so sends are buffered until they don't
@@ -612,7 +612,7 @@ void ustcomm_fini_app(struct ustcomm_app *handle)
        }
 }
 
-static char *find_tok(char *str)
+static const char *find_tok(const char *str)
 {
        while(*str == ' ') {
                str++;
@@ -624,7 +624,7 @@ static char *find_tok(char *str)
        return str;
 }
 
-static char *find_sep(char *str)
+static const char *find_sep(const char *str)
 {
        while(*str != ' ') {
                str++;
@@ -636,11 +636,11 @@ static char *find_sep(char *str)
        return str;
 }
 
-int nth_token_is(char *str, char *token, int tok_no)
+int nth_token_is(const char *str, const char *token, int tok_no)
 {
        int i;
-       char *start;
-       char *end;
+       const char *start;
+       const char *end;
 
        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;
 }
 
-char *nth_token(char *str, int tok_no)
+char *nth_token(const char *str, int tok_no)
 {
        static char *retval = NULL;
        int i;
-       char *start;
-       char *end;
+       const char *start;
+       const char *end;
 
        for(i=0; i<=tok_no; i++) {
                str = find_tok(str);
This page took 0.023745 seconds and 4 git commands to generate.