Date:2011-03-23 09:07:31 (6 years 7 months ago)
Author:werner
Commit:2de385e9c731ccec8569461b3ebe65be1471d253
Message: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.



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@6004 99fdad57-331a-0410-800a-d7fa5415bdb3
Files: postscript.c (2 diffs)

Change Details

postscript.c
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"
...... 
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);

Archive Download the corresponding diff file

Branches:
master



interactive