diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-10-25 23:44:20 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-10-25 23:44:20 +0000 |
commit | 7cb1e441c2077e1f293302a9f7b0c7c864af3ea8 (patch) | |
tree | 3ed8b2647dada77a68e455479a8b7ae16d806b53 /code/tools/lcc/cpp/include.c | |
parent | 3e8753057670d8970c086f8344afe0979191b397 (diff) | |
download | ioquake3-aero-7cb1e441c2077e1f293302a9f7b0c7c864af3ea8.tar.gz ioquake3-aero-7cb1e441c2077e1f293302a9f7b0c7c864af3ea8.zip |
* Fix some warnings in lcc compile
git-svn-id: svn://svn.icculus.org/quake3/trunk@1708 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/tools/lcc/cpp/include.c')
-rw-r--r-- | code/tools/lcc/cpp/include.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/code/tools/lcc/cpp/include.c b/code/tools/lcc/cpp/include.c index 1bb8847..331a0b4 100644 --- a/code/tools/lcc/cpp/include.c +++ b/code/tools/lcc/cpp/include.c @@ -40,7 +40,7 @@ doinclude(Tokenrow *trp) { char fname[256], iname[256]; Includelist *ip; - int angled, len, fd, i; + int angled, len, wlen, fd, i; trp->tp += 1; if (trp->tp>=trp->lp) @@ -92,9 +92,9 @@ doinclude(Tokenrow *trp) break; } if ( Mflag>1 || (!angled&&Mflag==1) ) { - write(1,objname,strlen(objname)); - write(1,iname,strlen(iname)); - write(1,"\n",1); + wlen = write(1,objname,strlen(objname)); + wlen = write(1,iname,strlen(iname)); + wlen = write(1,"\n",1); } if (fd >= 0) { if (++incdepth > 10) |