summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Giassa <mgiassa@cisco.com>2021-10-26 19:33:57 +0000
committerBeno�t Ganne <bganne@cisco.com>2021-10-27 07:59:09 +0000
commit93bca19f1e1026a5b49fbd42ec07721a9b83175c (patch)
treebeff635730319edcd6f0b3fde8ffcad81ca78b18
parentc12d48f4e61cabe4352b2ab3e23618cabb7fae06 (diff)
libmemif: fix gcc strict-proto error
- Changing function prototypes for a couple libmemif functions so that gcc will successfully compile with the "-Wstrict-prototypes" flag enabled. - Re-ran unit tests via "make test" locally on Ubuntu 20.04 LTS x64. One issue (likely unrelated to patch): * Testcase name: Bidirectional Forwarding Detection (BFD) ERROR: put session admin-up and admin-down [test_bfd.BFD4TestCase.test_admin_up_down] Type: fix Change-Id: Ibcb7210873d39aec9348fe8ac7eebc78d089d8e0 Signed-off-by: Matthew Giassa <mgiassa@cisco.com>
-rw-r--r--extras/libmemif/src/libmemif.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/libmemif/src/libmemif.h b/extras/libmemif/src/libmemif.h
index bb36c39047e..e604c40b20e 100644
--- a/extras/libmemif/src/libmemif.h
+++ b/extras/libmemif/src/libmemif.h
@@ -477,12 +477,12 @@ typedef struct
\return ((MEMIF_VERSION_MAJOR << 8) | MEMIF_VERSION_MINOR)
*/
-uint16_t memif_get_version ();
+uint16_t memif_get_version (void);
/** \brief Get memif version as string
\return major.minor
*/
-const char *memif_get_version_str ();
+const char *memif_get_version_str (void);
/** \brief Memif get queue event file descriptor
@param conn - memif connection handle
@@ -771,4 +771,4 @@ int memif_set_connection_request_timer (memif_socket_handle_t sock,
/** @} */
-#endif /* _LIBMEMIF_H_ */ \ No newline at end of file
+#endif /* _LIBMEMIF_H_ */