aboutsummaryrefslogtreecommitdiffstats
path: root/filescan-utils.c
AgeCommit message (Collapse)AuthorFilesLines
2018-12-13Fix memory leakRomain Forlot1-1/+2
Change-Id: Ia02a639ea9210ed7961a88c91ff9e4cd1a732416 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Avoid memory collision.Romain Forlot1-1/+1
Change-Id: I805a725d6b9477fcb690d7c2c7cbb6bb4f112dfb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Fix to support pre-V3 DynAPIFulup Ar Foll1-6/+14
2018-12-13Prepare for future API-V3Fulup Ar Foll1-0/+2
2018-12-13Misc Fix/CleaningRomain Forlot1-3/+1
- Correct size type ssize_t to test - Remove free() statement because memory don't issued from a malloc causing exception - Remove redundant break statement after a return. Change-Id: I47824dd5cf7afe68cd32e1c3e94e69f31d802995 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Concatenate result directly from GetBindingDirPathRomain Forlot1-1/+1
Return non const char pointer. Change-Id: I975b18f72d26c1a2749ca54e4f096271497047dd Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Fix: mismatching function signature.Romain Forlot1-1/+1
Change-Id: I5d3c8b34a4e42c867fe1e3eccd96aaa2cc9c5ca6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Only return binding root dir.Romain Forlot1-26/+5
If subdirs path is needed then concatenation as to be done using the rootdir. Change-Id: I50a1eeb1f853ae26995a96e1661ff38cb7959f60 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13More reliable GetBindingDirsPath function.Romain Forlot1-21/+29
Only return a wanted directory path not a complex structure. Change-Id: I5b5a1dea2c55ee6a76dbbbd52c3ebfdd684255e5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Retrieve binder rootdir and subfolder pathsRomain Forlot1-0/+37
Change-Id: I064bf4831be40de70dab68b72489c4fdfc69e9c4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Reduce scope for some variablesRomain Forlot1-2/+2
Change-Id: Ic89421054a83709eec6afaa22dbb4373bcff9b19 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Rename back define variable.Romain Forlot1-1/+1
Change-Id: Ie0d40f08230170ef780c46748889e153618d1c44 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13fix strncat functRonan Le Martret1-2/+2
I: Statement might be overflowing a buffer in strncat. Common mistake: BAD: strncat(buffer,charptr,sizeof(buffer)) is wrong, it takes the left over size as 3rd argument GOOD: strncat(buffer,charptr,sizeof(buffer)-strlen(buffer)-1) Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2018-12-13Fix: set default value if missing defined varRomain Forlot1-1/+1
Change-Id: I93f8546e2cfe7fc11fdf0f956f10429f6c0ad8d0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Format and missing header dependenciesRomain Forlot1-19/+21
Change-Id: If5890445bdb6a676ee6c435f50a27caa8ca5850d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Remove audio-bindings dependenciesRomain Forlot1-5/+1
Change-Id: Iad5c51cca8a659ca3c77dd63ce7920e0f54faf63 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Initializing the repoRomain Forlot1-0/+124
Change-Id: I354a1c136a57e1ec8d511041fbd13a19b730c419 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>