Kaydet (Commit) 10f4ddc9 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Declaration of stat shadows a global declaration

Change-Id: I154ba64ff61d08d7a600a83eb7dd41381aca73ca
üst 63b0ce97
......@@ -88,7 +88,7 @@ int main( int argc, char *argv[] )
int size;
size_t pathlen = strlen(path);
struct stat stat;
struct stat stats;
int ret;
static char const unoinfoSuffix[] = "/unoinfo";
......@@ -103,7 +103,7 @@ int main( int argc, char *argv[] )
strcpy(
unoinfo + pathlen,
unoinfoSuffix + (pathlen == 0 || path[pathlen - 1] != '/' ? 0 : 1));
ret = lstat(unoinfo, &stat);
ret = lstat(unoinfo, &stats);
free(unoinfo);
if (ret == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment