File tree Expand file tree Collapse file tree 2 files changed +0
-53
lines changed Expand file tree Collapse file tree 2 files changed +0
-53
lines changed Original file line number Diff line number Diff line change @@ -366,53 +366,6 @@ static inline int isfschar(int c)
366
366
return (isalpha (c ) || isdigit (c ) || c == '-' || c == '_' );
367
367
}
368
368
369
- fsdev_t * fsdev_strinit (const char * fs_names )
370
- {
371
- fsdev_t * lfs ;
372
- char * pstr , * * fs_arr ;
373
- size_t fs_cnt ;
374
- int state , e ;
375
-
376
- pstr = strdup (fs_names );
377
- state = 0 ;
378
- fs_arr = NULL ;
379
- fs_cnt = 0 ;
380
-
381
- while (* pstr != '\0' ) {
382
- switch (state ) {
383
- case 0 :
384
- if (isfschar (* pstr )) {
385
- state = 1 ;
386
- ++ fs_cnt ;
387
- fs_arr = realloc (fs_arr , sizeof (char * ) * fs_cnt );
388
- fs_arr [fs_cnt - 1 ] = pstr ;
389
- }
390
-
391
- ++ pstr ;
392
-
393
- break ;
394
- case 1 :
395
- if (!isfschar (* pstr ) && * pstr != '\0' ) {
396
- state = 0 ;
397
- * pstr = '\0' ;
398
- ++ pstr ;
399
- }
400
- break ;
401
- }
402
- }
403
-
404
- if (fs_arr != NULL && fs_cnt > 0 )
405
- qsort (fs_arr , fs_cnt , sizeof (char * ), fsname_cmp );
406
-
407
- lfs = fsdev_init ((const char * * )fs_arr , fs_cnt );
408
- e = errno ;
409
- free (fs_arr );
410
- errno = e ;
411
- free (pstr );
412
-
413
- return (lfs );
414
- }
415
-
416
369
void fsdev_free (fsdev_t * lfs )
417
370
{
418
371
if (lfs != NULL ) {
Original file line number Diff line number Diff line change @@ -50,12 +50,6 @@ typedef struct {
50
50
*/
51
51
fsdev_t * fsdev_init (const char * * fs , size_t fs_cnt );
52
52
53
- /**
54
- * Initialize the fsdev_t structure from a string containing filesystem
55
- * names.
56
- */
57
- fsdev_t * fsdev_strinit (const char * fs_names );
58
-
59
53
/**
60
54
* Free the fsdev_t structure.
61
55
*/
You can’t perform that action at this time.
0 commit comments