Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220551
b: refs/heads/master
c: ef89487
h: refs/heads/master
i:
  220549: 209a623
  220547: 1be011c
  220543: 1cd9c7e
v: v3
  • Loading branch information
Jean Sacren authored and Michal Marek committed Sep 29, 2010
1 parent 313e52a commit fcc3a22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 60eab877a9581b479c6c7d7913ce8070a0ace960
refs/heads/master: ef894870c6c38580e540c29cfb22a827d54a950a
8 changes: 2 additions & 6 deletions trunk/scripts/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,8 @@ static int read_symbol(FILE *in, struct sym_entry *s)

rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, str);
if (rc != 3) {
if (rc != EOF) {
/* skip line. sym is used as dummy to
* shut of "warn_unused_result" warning.
*/
sym = fgets(str, 500, in);
}
if (rc != EOF && fgets(str, 500, in) == NULL)
fprintf(stderr, "Read error or end of file.\n");
return -1;
}

Expand Down

0 comments on commit fcc3a22

Please sign in to comment.