Skip to content
Snippets Groups Projects
Commit 374c296d authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

Unify function type

parent 6c461ed0
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ extern void parse_module_check_name(char const *src, char const *name) ;
extern void regex_configure(resolve_service_t *res, ssexec_t *info, char const *path, char const *name) ;
extern void regex_rename(stralloc *list, resolve_service_t *res, uint32_t element) ;
extern void regex_replace(stralloc *list, resolve_service_t *res) ;
extern uint8_t regex_get_file_name(stack *filename, char const *str) ;
extern uint32_t regex_get_file_name(stack *filename, char const *str) ;
extern void get_list(stralloc *list, char const *src, char const *name, mode_t mode, char const **exclude) ;
#endif
......@@ -18,7 +18,7 @@
#include <oblibs/lexer.h>
#include <oblibs/stack.h>
int regex_get_file_name(stack *filename, char const *str)
uint32_t regex_get_file_name(stack *filename, char const *str)
{
log_flow() ;
......
......@@ -81,7 +81,7 @@ void regex_replace(stralloc *filelist, resolve_service_t *res)
if ((line[0] != ':') || (get_sep_before(line + 1, ':', '=') < 0))
log_die(LOG_EXIT_SYS, "bad format in line: ", line, " of key @infiles field") ;
r = regex_get_file_name(&filename, line) ;
r = (int)regex_get_file_name(&filename, line) ;
if (!r)
log_dieusys(LOG_EXIT_SYS, "get file name at line: ", line) ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment