Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227650
b: refs/heads/master
c: a3ba811
h: refs/heads/master
v: v3
  • Loading branch information
Ben Gamari authored and Michal Marek committed Dec 22, 2010
1 parent 294237e commit 8700cb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 6e5f6856427abe5418f535cb46c454ae8ea7f8e7
refs/heads/master: a3ba81131aca243bfecfa78c42edec0cd69f72d6
10 changes: 7 additions & 3 deletions trunk/scripts/basic/fixdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ static void do_config_file(const char *filename)

fd = open(filename, O_RDONLY);
if (fd < 0) {
fprintf(stderr, "fixdep: ");
fprintf(stderr, "fixdep: error opening config file: ");
perror(filename);
exit(2);
}
Expand Down Expand Up @@ -357,11 +357,15 @@ static void print_deps(void)

fd = open(depfile, O_RDONLY);
if (fd < 0) {
fprintf(stderr, "fixdep: ");
fprintf(stderr, "fixdep: error opening depfile: ");
perror(depfile);
exit(2);
}
fstat(fd, &st);
if (fstat(fd, &st) < 0) {
fprintf(stderr, "fixdep: error fstat'ing depfile: ");
perror(depfile);
exit(2);
}
if (st.st_size == 0) {
fprintf(stderr,"fixdep: %s is empty\n",depfile);
close(fd);
Expand Down

0 comments on commit 8700cb4

Please sign in to comment.