~ubuntu-branches/ubuntu/gutsy/avr-libc/gutsy

« back to all changes in this revision

Viewing changes to libc/stdio/fputs_p.c

  • Committer: Bazaar Package Importer
  • Author(s): Hakan Ardo
  • Date: 2006-11-15 21:12:47 UTC
  • mfrom: (3.1.2 feisty)
  • Revision ID: james.westby@ubuntu.com-20061115211247-b7qhgnb6o49v5zsg
Tags: 1:1.4.5-2
* Convertion to debheler fixed (closes: #398220)
* Reference to /usr/share/common-licenses in copyright file

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
  POSSIBILITY OF SUCH DAMAGE.
28
28
*/
29
29
 
30
 
/* $Id: fputs_p.c,v 1.4 2004/07/21 22:11:59 joerg_wunsch Exp $ */
 
30
/* $Id: fputs_p.c,v 1.5 2005/09/06 18:49:15 joerg_wunsch Exp $ */
31
31
 
32
32
#include <stdio.h>
33
33
#include <avr/pgmspace.h>
48
48
         * macro, so it could evaluate its argument more than once.
49
49
         */
50
50
        while ((c = pgm_read_byte(str)) != '\0') {
51
 
                if (stream->put(c) != 0)
 
51
                if (stream->put(c, stream) != 0)
52
52
                        rv = EOF;
53
53
                str++;
54
54
        }