~ubuntu-branches/ubuntu/feisty/linux-atm/feisty

« back to all changes in this revision

Viewing changes to src/ilmid/asn1/asn_oid.c

  • Committer: Bazaar Package Importer
  • Author(s): Peter De Schrijver (p2)
  • Date: 2005-03-17 23:02:03 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050317230203-7vc1pxi0oua0nw5w
Tags: 2.4.1-17
Fix build problem with gcc 4.0 (Closes: )

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <config.h>
22
22
#endif
23
23
 
 
24
#include <stdlib.h>
 
25
#include <string.h>
 
26
 
24
27
#include "asn_config.h"
25
28
#include "asn_len.h"
26
29
#include "asn_tag.h"
125
128
    if (firstArcNum > 2)
126
129
        firstArcNum = 2;
127
130
 
128
 
    fprintf(f,"%u %u", firstArcNum, arcNum - (firstArcNum * 40));
 
131
    fprintf(f,"%d %lu", firstArcNum, arcNum - (firstArcNum * 40));
129
132
 
130
133
    for (; i < v->octetLen ; )
131
134
    {
134
137
 
135
138
        arcNum = (arcNum << 7) + (v->octs[i] & 0x7f);
136
139
        i++;
137
 
        fprintf(f," %u", arcNum);
 
140
        fprintf(f," %lu", arcNum);
138
141
    }
139
142
    fprintf(f,"}");
140
143