Don't use PATH_MAX const.

There are systems, for example Hurd, which doesn't define this constant
because there are no such limit. See [1] link for explanation.

[1] http://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
This commit is contained in:
Ondřej Nový 2016-02-28 10:58:30 +01:00 committed by Tushar Gohad
parent 17a6dbeb93
commit 9f10068e3e
1 changed files with 3 additions and 2 deletions

View File

@ -105,11 +105,12 @@ struct ec_backend_desc {
struct ec_backend_common {
ec_backend_id_t id; /* EC backend type */
char name[MAX_LEN]; /* EC backend common name */
char soname[PATH_MAX]; /* EC backend shared library path */
const char *soname; /* EC backend shared library path */
char soversion[MAX_LEN]; /* EC backend shared library version */
struct ec_backend_op_stubs *ops; /* EC backend stubs */
size_t backend_metadata_size; /* EC backend custom metadata size -
size_t backend_metadata_size;
/* EC backend custom metadata size -
* backend_metadata_size bytes are added to
* the fragment size when allocating
* data/parity fragment buffers */