X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fssequal.c;h=e7a12adbd20fb2ca4ad4f45e9113f81054e4f087;hp=5ccf28fd134a59f7ac3252dd358c4b2ea265ea5b;hb=a485ed478abbd599d8c9aab48934e7a26733ecb1;hpb=f480c03187724e54e5391ee61b810827da319a6c diff --git a/sbr/ssequal.c b/sbr/ssequal.c index 5ccf28f..e7a12ad 100644 --- a/sbr/ssequal.c +++ b/sbr/ssequal.c @@ -1,4 +1,3 @@ - /* * ssequal.c -- check if a string is a substring of another * @@ -25,13 +24,13 @@ int ssequal (char *s1, char *s2) { - if (!s1) - s1 = ""; - if (!s2) - s2 = ""; + if (!s1) + s1 = ""; + if (!s2) + s2 = ""; - while (*s1) - if (*s1++ != *s2++) - return 0; - return 1; + while (*s1) + if (*s1++ != *s2++) + return 0; + return 1; }