Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147662
b: refs/heads/master
c: 76a0f40
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Jun 4, 2009
1 parent 3dbf987 commit 5ede3ed
Show file tree
Hide file tree
Showing 2 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: 9ac995457b2a148ed9bb8860e8b7cb869327b102
refs/heads/master: 76a0f40fd6eff1bce3b91925cea7587b3399fe80
7 changes: 5 additions & 2 deletions trunk/Documentation/perf_counter/util/quote.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ static size_t quote_c_style_counted(const char *name, ssize_t maxlen,
} while (0)
#define EMITBUF(s, l) \
do { \
int __ret; \
if (sb) strbuf_add(sb, (s), (l)); \
if (fp) fwrite((s), (l), 1, fp); \
if (fp) __ret = fwrite((s), (l), 1, fp); \
count += (l); \
} while (0)

Expand Down Expand Up @@ -287,7 +288,9 @@ extern void write_name_quotedpfx(const char *pfx, size_t pfxlen,
quote_c_style(name, NULL, fp, 1);
fputc('"', fp);
} else {
fwrite(pfx, pfxlen, 1, fp);
int ret;

ret = fwrite(pfx, pfxlen, 1, fp);
fputs(name, fp);
}
fputc(terminator, fp);
Expand Down

0 comments on commit 5ede3ed

Please sign in to comment.