X-Git-Url: http://git.tdb.fi/?p=pmount-gui.git;a=blobdiff_plain;f=main.c;h=63921300b2bf373105ae557e773295b0d74489c4;hp=916c2e214fce6c636c6eaf5889a012231af990eb;hb=a82201f388e8d4b4b5b10b9547c3ee3a4e488586;hpb=0bf882489848c7f19eb602e286d760c709685251 diff --git a/main.c b/main.c index 916c2e2..6392130 100644 --- a/main.c +++ b/main.c @@ -1,3 +1,5 @@ +/* Required for strdup, snprintf, getopt */ +#define _XOPEN_SOURCE 500 #include #include #include @@ -7,6 +9,7 @@ #include #include #include +#include #include #include @@ -427,10 +430,12 @@ Device *get_devices(void) for(i=0; nodes[i]; ++i) { + Property *props; + if(verbosity>=1) printf("Examining device %s\n", nodes[i]); - Property *props = get_device_properties(nodes[i]); + props = get_device_properties(nodes[i]); if(!props) { if(verbosity>=2)