mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zipl/src: make blsdir variable global instead of local
It is used by the next patch. Specifically, ->filter() and ->sort() callbacks of the scandir(3) accept only short names of directory entries to be filtered/sorted, while we need to know absolute names to perform filtering/sorting. Signed-off-by: Eduard Shishkin <edward6@linux.ibm.com> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
e9bf141264
commit
ebc3384b9f
+1
-2
@@ -40,7 +40,6 @@
|
||||
#include "misc.h"
|
||||
#include "scan.h"
|
||||
|
||||
|
||||
/* Determines which keyword may be present in which section */
|
||||
enum scan_key_state scan_key_table[SCAN_SECTION_NUM][SCAN_KEYWORD_NUM] = {
|
||||
/* defa dump dump imag para parm ramd segm targ prom time defa tape mv
|
||||
@@ -1318,7 +1317,7 @@ static char *scan_get_default_target(struct scan_token *scan)
|
||||
|
||||
#define BLS_TOKEN_MAX 5 /* section heading, image, ramdisk, parameter, target */
|
||||
|
||||
int scan_bls(const char *blsdir, struct scan_token **token, int scan_size)
|
||||
int scan_bls(struct scan_token **token, int scan_size)
|
||||
{
|
||||
int size, remaining = 0, n, current, rc = -1, count = 0;
|
||||
struct scan_token *array = *token;
|
||||
|
||||
Reference in New Issue
Block a user