Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317713
b: refs/heads/master
c: ce7b04c
h: refs/heads/master
i:
  317711: dfd3c1e
v: v3
  • Loading branch information
Peter Meerwald authored and Jonathan Cameron committed Jun 30, 2012
1 parent 4e7aa39 commit d6dbf83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4d429e362d873414046c78724f3d6a7978bc2fd
refs/heads/master: ce7b04c629254b884baa338730021b01298be921
2 changes: 2 additions & 0 deletions trunk/drivers/staging/iio/Documentation/iio_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ inline int _write_sysfs_int(char *filename, char *basedir, int val, int verify)
goto error_free;
}
fscanf(sysfsfp, "%d", &test);
fclose(sysfsfp);
if (test != val) {
printf("Possible failure in int write %d to %s%s\n",
val,
Expand Down Expand Up @@ -573,6 +574,7 @@ int _write_sysfs_string(char *filename, char *basedir, char *val, int verify)
goto error_free;
}
fscanf(sysfsfp, "%s", temp);
fclose(sysfsfp);
if (strcmp(temp, val) != 0) {
printf("Possible failure in string write of %s "
"Should be %s "
Expand Down

0 comments on commit d6dbf83

Please sign in to comment.