From 9e0521ebb0619fd1fa30d93da2d7b53c11b0c33a Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Wed, 16 Jun 2010 13:03:48 +0000 Subject: [PATCH] Fix lvm2cmd example in documentation. --- WHATS_NEW | 1 + doc/example_cmdlib.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index c4e9429c0..960d01583 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.68 - =============================== + Fix lvm2cmd example in documentation. Allow use of lvm2app and lvm2cmd headers in C++ mode. Fix wrong lvm path creation from configure introduced in previous release. Fix segfault in clvmd -R if no response from daemon received. diff --git a/doc/example_cmdlib.c b/doc/example_cmdlib.c index 1fff36e29..4d1a49d6a 100644 --- a/doc/example_cmdlib.c +++ b/doc/example_cmdlib.c @@ -13,10 +13,11 @@ */ #include "lvm2cmd.h" +#include /* All output gets passed to this function line-by-line */ -void test_log_fn(int level, int dm_errno, const char *file, int line, - const char *format) +void test_log_fn(int level, const char *file, int line, + int dm_errno, const char *format) { /* Extract and process output here rather than printing it */