libmemif: fix gcc strict-proto error 53/34253/3
authorMatthew Giassa <mgiassa@cisco.com>
Tue, 26 Oct 2021 19:33:57 +0000 (19:33 +0000)
committerBeno�t Ganne <bganne@cisco.com>
Wed, 27 Oct 2021 07:59:09 +0000 (07:59 +0000)
- 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>
extras/libmemif/src/libmemif.h

index bb36c39..e604c40 100644 (file)
@@ -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_ */