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 d2a136c..bcb5cea 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' $< > $@