]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- avoid deprecated function
authorArvin Schnell <aschnell@suse.de>
Fri, 25 Oct 2013 09:01:05 +0000 (11:01 +0200)
committerArvin Schnell <aschnell@suse.de>
Fri, 25 Oct 2013 09:01:05 +0000 (11:01 +0200)
examples/c++-lib/Create.cc

index 4a2a4a36e4d7ea35d9b178d0bab38c4ac1e2cd4b..b0e4305f6a639fd5226b6c9c4f9ce6ee923ae0ea 100644 (file)
@@ -1,4 +1,6 @@
 
+#include <unistd.h>
+#include <sys/types.h>
 #include <stdlib.h>
 #include <iostream>
 
@@ -12,7 +14,7 @@ main(int argc, char** argv)
 {
     Snapper* sh = new Snapper();
 
-    sh->createSingleSnapshot("test");
+    sh->createSingleSnapshot(getuid(), "test", "number", map<string, string>());
 
     delete sh;