From 2309614fab4908c7af124f99936243fd0f5dff38 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 14 Jan 2015 14:23:34 +0100 Subject: [PATCH] Update SimpleProducer.cc ISO C++ Standard (3.6.1[2]) compliance: - https://isocpp.org/wiki/faq/newbie#main-returns-int - http://en.cppreference.com/w/cpp/language/main_function --- samples/SimpleProducer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/SimpleProducer.cc b/samples/SimpleProducer.cc index 0c36d31..eb8fbb2 100644 --- a/samples/SimpleProducer.cc +++ b/samples/SimpleProducer.cc @@ -44,7 +44,7 @@ using namespace LibKafka; Message* createMessage(const char * value, const char *key = ""); ProduceRequest* createProduceRequest(string topic_name, Message **messageArray, int messageArraySize); -main() +int main() { const char *hostname = ""; const int port = 9092;