Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285824
b: refs/heads/master
c: 37ae2d5
h: refs/heads/master
v: v3
  • Loading branch information
Arnaud Lacombe authored and Michal Marek committed Jan 14, 2012
1 parent ecd5eff commit 2b0b605
Show file tree
Hide file tree
Showing 3 changed files with 6 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: e2aef4d33ac43ec45e4fc2903288030d7f464832
refs/heads/master: 37ae2d5998aa29d8bf52f124199a21341bc6d18d
1 change: 1 addition & 0 deletions trunk/scripts/kconfig/expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
extern "C" {
#endif

#include <assert.h>
#include <stdio.h>
#ifndef __cplusplus
#include <stdbool.h>
Expand Down
6 changes: 4 additions & 2 deletions trunk/scripts/kconfig/lkc.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ struct conf_printer {
/* confdata.c and expr.c */
static inline void xfwrite(const void *str, size_t len, size_t count, FILE *out)
{
if (fwrite(str, len, count, out) < count)
fprintf(stderr, "\nError in writing or end of file.\n");
assert(len != 0);

if (fwrite(str, len, count, out) != count)
fprintf(stderr, "Error in writing or end of file.\n");
}

/* menu.c */
Expand Down

0 comments on commit 2b0b605

Please sign in to comment.