Преглед изворни кода

modules/p_usrloc: fixes get_all_ucontacts() function signature

usrloc.c:61:26: warning: incompatible pointer types assigning to
'get_all_ucontacts_t' (aka 'int (*)(void *, int, unsigned int, unsigned int, unsigned int, int)') from
'int (void *, int, unsigned int, unsigned int, unsigned int)'
[-Wincompatible-pointer-types]
Mikko Lehto пре 10 година
родитељ
комит
4dc718a0f2
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      modules/p_usrloc/dlist.c
  2. 1 1
      modules/p_usrloc/dlist.h

+ 1 - 1
modules/p_usrloc/dlist.c

@@ -153,7 +153,7 @@ unsigned long get_number_of_users(void)
 
 
 int get_all_ucontacts(void *buf, int len, unsigned int flags,
-                         unsigned int part_idx, unsigned int part_max)
+                         unsigned int part_idx, unsigned int part_max, int options)
 {
 	LM_INFO("not available with partitioned interface");
 	return -1;

+ 1 - 1
modules/p_usrloc/dlist.h

@@ -107,7 +107,7 @@ int register_udomain(const char* _n, udomain_t** _d);
  * \return 0 on success, positive if buffer size was not sufficient, negative on failure
  */
 int get_all_ucontacts(void *, int, unsigned int,
-           unsigned int part_idx, unsigned int part_max);
+           unsigned int part_idx, unsigned int part_max, int options);
 
 /*!
  * \brief Find a particular domain, small wrapper around find_dlist