~ubuntu-branches/ubuntu/trusty/libxfont/trusty-proposed

« back to all changes in this revision

Viewing changes to src/fontfile/bufio.c

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Potyra
  • Date: 2009-05-09 12:11:53 UTC
  • mfrom: (1.1.10 upstream) (10.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090509121153-nwte290k1e9gew62
Tags: 1:1.4.0-1ubuntu1
* Rebase to unstable, remaining change:
  + debian/rules: unset LDFLAGS to not be hit by -Bsymbolic-functions,
    as libxfont contains weak symbols which are meant to be overriden
    (cf. LP #226156).

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
{
52
52
    BufFilePtr  f;
53
53
 
54
 
    f = (BufFilePtr) xalloc (sizeof *f);
 
54
    f = malloc (sizeof *f);
55
55
    if (!f)
56
56
        return 0;
57
57
    f->private = private;
125
125
BufFilePtr
126
126
BufFileOpenRead (int fd)
127
127
{
128
 
#if defined(__UNIXOS2__) || defined (WIN32)
 
128
#if defined (WIN32)
129
129
    /* hv: I'd bet WIN32 has the same effect here */
130
130
    setmode(fd,O_BINARY);
131
131
#endif
160
160
{
161
161
    BufFilePtr  f;
162
162
 
163
 
#if defined(__UNIXOS2__) || defined(WIN32)
 
163
#if defined(WIN32)
164
164
    /* hv: I'd bet WIN32 has the same effect here */
165
165
    setmode(fd,O_BINARY);
166
166
#endif
201
201
{
202
202
    int ret;
203
203
    ret = (*f->close) (f, doClose);
204
 
    xfree (f);
 
204
    free (f);
205
205
    return ret;
206
206
}