const char *

This commit is contained in:
c9s 2014-05-27 01:08:01 +08:00
parent 54397987bd
commit 9f8176447b
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@
#include "r3.h" #include "r3.h"
#include "config.h" #include "config.h"
int slug_count(char * p, int len); int slug_count(const char * p, int len);
char * slug_compile(char * str, int len); char * slug_compile(char * str, int len);

View file

@ -42,7 +42,7 @@ int r3_pattern_to_opcode(char * pattern, int len) {
/** /**
* provide a quick way to count slugs, simply search for '{' * provide a quick way to count slugs, simply search for '{'
*/ */
int slug_count(char * p, int len) { int slug_count(const char * p, int len) {
int s = 0; int s = 0;
int lev = 0; int lev = 0;
while( len-- ) { while( len-- ) {