Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 15b3651

Browse files
author
Werner Almesberger
committed
hack: set errno to ENOENT when -1 fails, so that the error isn't too ugly
The caller assumes that any error would be signaled via errno. A proper solution would be to allow also for non-errno errors.
1 parent 3d0ec2d commit 15b3651

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎eda/fped/postscript.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <stdlib.h>
1515
#include <stdio.h>
1616
#include <string.h>
17+
#include <errno.h>
1718

1819
#include "util.h"
1920
#include "coord.h"
@@ -1095,6 +1096,7 @@ static int ps_for_all_pkg(FILE *file,
10951096
pages++;
10961097
if (one && !pages) {
10971098
fprintf(stderr, "no package \"%s\" to select\n", one);
1099+
errno = ENOENT;
10981100
return 0;
10991101
}
11001102
prologue(file, pages);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /