Commit 7ffa96de authored by Janito Vaqueiro Ferreira Filho's avatar Janito Vaqueiro Ferreira Filho Committed by Érico Nogueira Rolim

sdbfs: fix wrong pointer type warnings

Commit taken from [1].

[1] https://github.com/lnls-dig/halcs/commit/2d4b7670c46b684fec8348bfb59b39723335a260
parent 95a46938
......@@ -199,7 +199,7 @@ int sdbfs_open_name(struct sdbfs *fs, const char *name)
return -ENOENT;
sdbfs_scan(fs, 1); /* new scan: get the interconnect and igore it */
while ( (d = sdbfs_scan(fs, 0)) != NULL) {
if (strncmp(name, d->sdb_component.product.name, len))
if (strncmp(name, (const char*)d->sdb_component.product.name, len))
continue;
if (len < 19 && d->sdb_component.product.name[len] != ' ')
continue;
......
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