X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fconf-test.c;h=47eff30ba223e3a00d06ac5da83acf3eb06fb3d4;hb=8da1372a2339f2c606a43e4bdcb48e4c34d84ebc;hp=719a0cfd35e4ee29a1b132935308a94f8b339c9c;hpb=85aa55b239c5e3bfcb45fdf9e143ac080a278caa;p=libucw.git diff --git a/lib/conf-test.c b/lib/conf-test.c index 719a0cfd..47eff30b 100644 --- a/lib/conf-test.c +++ b/lib/conf-test.c @@ -6,7 +6,7 @@ #include #include -static int robert=14; +static u64 robert=14; static int spalek=-3; static char *heslo="prazdne"; static int nastaveni1=0,nastaveni2=1; @@ -36,7 +36,7 @@ static byte *set_nastaveni(struct cfitem *item, byte *value) static struct cfitem jmeno[]={ {"jmeno", CT_SECTION, NULL}, - {"robert", CT_INT, &robert}, + {"robert", CT_U64, &robert}, {"spalek", CT_INT, &spalek}, {"heslo", CT_STRING, &heslo}, {"nastaveni1", CT_FUNCTION, &set_nastaveni}, @@ -120,8 +120,8 @@ int main(int argc, char *argv[]) printf ("\n"); } - printf("robert=%d, spalek=%d, heslo=%s, nastaveni1/2=%d/%d decker=%f\n", - robert,spalek,heslo,nastaveni1,nastaveni2,decker); + printf("robert=%Ld, spalek=%d, heslo=%s, nastaveni1/2=%d/%d decker=%f\n", + (long long)robert,spalek,heslo,nastaveni1,nastaveni2,decker); printf("vek=%d, vyska=%d, vaha=%d\n", vek,vyska,vaha);