Changeset 1a81c83 for lib


Ignore:
Timestamp:
2015-05-06T15:48:16Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
6f903c3
Parents:
f81d8b8
Message:

s/number/integer in a few places.

Also (since I forgot to commit), updating rpc module to not treat all plugin
calls as optional.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/oauth2.c

    rf81d8b8 r1a81c83  
    126126                const char *type = json_object_get_string(json_object(e), "type");
    127127                JSON_Value *code_o = json_object_get_value(json_object(e), "code");
    128                 int code = 0;
    129 
    130                 if (json_type(code_o) == JSONNumber) {
    131                         code = json_value_get_number(code_o);
    132                 }
    133 
     128                int code = json_value_get_integer(code_o);
    134129                return g_strdup_printf("Error %d: %s", code, msg ? msg : type ? type : "Unknown error");
    135130        } else if (json_type(e) == JSONString) {
Note: See TracChangeset for help on using the changeset viewer.