Error codes must not start with zero.
authorAndre Noll <maan@systemlinux.org>
Fri, 6 Jun 2008 08:43:42 +0000 (10:43 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 6 Jun 2008 08:43:42 +0000 (10:43 +0200)
Makefile

index d2a136c504ce57db431fc04a60afb561fd3b6bfc..bcb5cea550c1f332e6f57adfa9066292992206dd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -126,6 +126,7 @@ $(realname): $(objects)
 osl_errors.h: errlist
        sed -e 's/\([A-Z_]*\)   .*/     E_OSL_\1/' \
                -e '1s/^/enum osl_errors {/1' \
+               -e '1s/$$/=1/1' \
                -e '$$!s/$$/,/g' \
                -e '$$s/$$/};/1' $< > $@