~yolanda.robla/ubuntu/saucy/ipxe/ftbfs

« back to all changes in this revision

Viewing changes to src/core/misc.c

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-11-14 15:47:31 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20121114154731-jhuy5d1h2jw75qe9
Tags: 1.0.0+git-4.d6b0b76-0ubuntu1
* New upstream snapshot:
  - d/p/iscsi*.patch: Dropped - included in snapshot.
  - Refreshed all other patches.
* d/p/enable-https.patch: Enable HTTPS support (LP: #1025239).

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
unsigned long strtoul ( const char *p, char **endp, int base ) {
37
37
        unsigned long ret = 0;
 
38
        int negative = 0;
38
39
        unsigned int charval;
39
40
 
 
41
        while ( isspace ( *p ) )
 
42
                p++;
 
43
 
 
44
        if ( *p == '-' ) {
 
45
                negative = 1;
 
46
                p++;
 
47
        }
 
48
 
40
49
        base = strtoul_base ( &p, base );
41
50
 
42
51
        while ( 1 ) {
47
56
                p++;
48
57
        }
49
58
 
 
59
        if ( negative )
 
60
                ret = -ret;
 
61
 
50
62
        if ( endp )
51
63
                *endp = ( char * ) p;
52
64