From: uz Date: Thu, 3 Jun 2010 21:26:52 +0000 (+0000) Subject: Call __seterrno instead of assigning to _errno and save a few bytes. X-Git-Tag: V2.13.3~731 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ef4a2e667da2b1486f62bda828450b3b46772f85;p=cc65 Call __seterrno instead of assigning to _errno and save a few bytes. git-svn-id: svn://svn.cc65.org/cc65/trunk@4701 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/common/signal.s b/libsrc/common/signal.s index 5d2b7ebc1..9327ca89c 100644 --- a/libsrc/common/signal.s +++ b/libsrc/common/signal.s @@ -61,9 +61,7 @@ __sig_ign: invalidsig: lda #EINVAL ; A = 0 - sta __errno+1 + jsr __seterrno ; Returns 0 in A tax ; A/X = 0 __sig_dfl: rts