浏览代码

ims_usrloc_pcscf: fix warning deprecated-non-prototype

> In file included from usrloc_db.c:12:
> Warning: ./usrloc_db.h:131:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
> int use_location_pcscf_table();
>     ^
> usrloc_db.c:113:5: note: conflicting prototype is here
> int use_location_pcscf_table(str *domain)
>     ^
> 1 warning generated.

(cherry picked from commit 35a87c98f4e84b65f82376dfb57050f43d0f355f)
Victor Seva 11 月之前
父节点
当前提交
2ad5b019f6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/ims_usrloc_pcscf/usrloc_db.h

+ 1 - 1
src/modules/ims_usrloc_pcscf/usrloc_db.h

@@ -128,7 +128,7 @@ typedef struct reusable_buffer
 	int data_len;
 } t_reusable_buffer;
 
-int use_location_pcscf_table();
+int use_location_pcscf_table(str *domain);
 void destroy_db();
 int init_db(const str *db_url, int db_update_period, int fetch_num_rows);
 int connect_db(const str *db_url);