Skip to content

Commit

Permalink
Make print_scan() function non-static
Browse files Browse the repository at this point in the history
Recently builtins were moved into separate modules. It broke builds in
Copr and OBS. `print_scan()` function should be declared non-static as
it's used in more than one file. Fix made in previous commit was
incorrect.
  • Loading branch information
siteshwar committed Aug 29, 2019
1 parent 0b46d8c commit 15f781f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cmd/ksh93/bltins/typeset.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
static_fn int print_namval(Sfio_t *, Namval_t *, bool, struct tdata *);
static_fn void print_attribute(Namval_t *, void *);
static_fn void print_all(Sfio_t *, Dt_t *, struct tdata *);
static_fn void print_scan(Sfio_t *, nvflag_t, Dt_t *, bool, struct tdata *);
static_fn void pushname(Namval_t *, void *);

int b_typeset(int argc, char *argv[], Shbltin_t *context) {
Expand Down Expand Up @@ -841,7 +840,7 @@ static_fn void print_attribute(Namval_t *np, void *data) {
// Print the nodes in tree <root> which have attributes <flag> set of <option> is non-zero, no
// subscript or value is printed.
//
static_fn void print_scan(Sfio_t *file, nvflag_t flag, Dt_t *root, bool omit_attrs, struct tdata *tp) {
void print_scan(Sfio_t *file, nvflag_t flag, Dt_t *root, bool omit_attrs, struct tdata *tp) {
char **argv;
Namval_t *np;
int namec;
Expand Down

0 comments on commit 15f781f

Please sign in to comment.