Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Resolved kernel/bpf/btf.c using instructions from merge commit
69138b34a7
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -138,11 +138,19 @@ char *read_text_file(const char *filename)
|
||||
|
||||
char *get_line(char **stringp)
|
||||
{
|
||||
char *orig = *stringp, *next;
|
||||
|
||||
/* do not return the unwanted extra line at EOF */
|
||||
if (*stringp && **stringp == '\0')
|
||||
if (!orig || *orig == '\0')
|
||||
return NULL;
|
||||
|
||||
return strsep(stringp, "\n");
|
||||
next = strchr(orig, '\n');
|
||||
if (next)
|
||||
*next++ = '\0';
|
||||
|
||||
*stringp = next;
|
||||
|
||||
return orig;
|
||||
}
|
||||
|
||||
/* A list of all modules we processed */
|
||||
|
Reference in New Issue
Block a user