Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291121
b: refs/heads/master
c: 44d4b2a
h: refs/heads/master
i:
  291119: 45f1145
v: v3
  • Loading branch information
Hauke Mehrtens authored and John W. Linville committed Mar 5, 2012
1 parent 4cb6231 commit 5b8ba75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: a027237a56f7d519eee5749cfb720e568d0bb0b6
refs/heads/master: 44d4b2ae94b19080d6d033a1f5cf2cc47443be3b
3 changes: 1 addition & 2 deletions trunk/arch/mips/bcm47xx/nvram.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ int nvram_getenv(char *name, char *val, size_t val_len)
value = eq + 1;
if ((eq - var) == strlen(name) &&
strncmp(var, name, (eq - var)) == 0) {
snprintf(val, val_len, "%s", value);
return 0;
return snprintf(val, val_len, "%s", value);
}
}
return NVRAM_ERR_ENVNOTFOUND;
Expand Down

0 comments on commit 5b8ba75

Please sign in to comment.