Commit Graph

6 Commits

Author SHA1 Message Date
Marcos Paulo de Souza
9ff62fa66c examples/librados/hello_world.cc: Remove not needed else clause
If the 'if' clause ends executing a goto, there is no need for an else
clause that only prints a message about the success of the action.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2018-11-04 23:35:43 -02:00
Kefu Chai
bd36f13163 doc: fix the links to http://ceph.com/docs
they should point to http://docs.ceph.com/docs/master/.. instead

Fixes: http://tracker.ceph.com/issues/19090
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-03-15 16:40:07 +08:00
Michal Jarzabek
2fea3a56a6 examples/librados/hello_world.cc:missing semicolon
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2015-09-26 14:45:22 +01:00
Brad Hubbard
26bcb362f4 Examples: hello_world.cc, content displayed after read is not null terminated.
Copy contents of bufferlist to a string before sending to stdout since a
bufferlist is not null terminated.

Fixes: #7822
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2015-09-15 18:58:44 +10:00
Jiaying Ren
ca285d4d57 Fix typos in librados example code
Signed-off-by: Jiaying Ren <mikulely@gmail.com>
2015-06-17 23:47:09 +08:00
Greg Farnum
823435ce65 examples: add a librados/hello_world program
This is a simple program with lots of explanatory comments people
can use as a model for using librados.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-08-19 14:55:09 -07:00