taplib's is_str() should take const char *
This commit is contained in:
parent
be153dc5ee
commit
1bf3c958b1
|
@ -41,7 +41,7 @@ void is_int(int got, int expect, char *name)
|
|||
}
|
||||
}
|
||||
|
||||
void is_str(char *got, char *expect, char *name)
|
||||
void is_str(const char *got, const char *expect, char *name)
|
||||
{
|
||||
if(strcmp(got, expect) == 0)
|
||||
ok(1, name);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
void plan_tests(int n);
|
||||
void ok(int cmp, char *name);
|
||||
void is_int(int got, int expect, char *name);
|
||||
void is_str(char *got, char *expect, char *name);
|
||||
void is_str(const char *got, const char *expect, char *name);
|
||||
int exit_status(void);
|
||||
|
|
Loading…
Reference in New Issue