X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fapcupsd.c;h=2e23bf745e3d2118d1f6c5c3346325d59bbf04a0;hb=13188c8b110a8cc94f43bc6c5a37b073e3b78430;hp=7bec156fcdbb01da9be9c195d9d6d2aa33ca9e70;hpb=36ebcf347de0faf57841585118f82ef95e5f1e82;p=monky diff --git a/src/apcupsd.c b/src/apcupsd.c index 7bec156..2e23bf7 100644 --- a/src/apcupsd.c +++ b/src/apcupsd.c @@ -154,7 +154,7 @@ static int fill_items(int sock, PAPCUPSD_S apc) { // // Conky update function for apcupsd data // -void update_apcupsd(void) { +int update_apcupsd(void) { int i; APCUPSD_S apc; @@ -225,5 +225,5 @@ void update_apcupsd(void) { // "atomically" copy the data into working set // memcpy(info.apcupsd.items, apc.items, sizeof(info.apcupsd.items)); - return; + return 0; }