Skip to content

Commit

Permalink
nvtype.c: remove unused Fields_t foo array (re: d0a5cab)
Browse files Browse the repository at this point in the history
  • Loading branch information
McDutchie committed Aug 26, 2024
1 parent b5d1f09 commit ab43fdc
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/cmd/ksh93/sh/nvtype.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,30 +1354,6 @@ int nv_settype(Namval_t* np, Namval_t *tp, int flags)
return 0;
}

#define S(x) #x
#define FIELD(x,y) { S(y##x), S(x##_t), offsetof(struct stat,st_##y##x) }
typedef struct _field_
{
char *name;
char *type;
int offset;
} Fields_t;

Fields_t foo[]=
{
FIELD(dev,),
FIELD(ino,),
FIELD(nlink,),
FIELD(mode,),
FIELD(uid,),
FIELD(gid,),
FIELD(size,),
FIELD(time,a),
FIELD(time,m),
FIELD(time,c),
0
};

static void write_indent(Sfio_t *out,char *str,int n,int indent)
{
int c, first=1;
Expand Down

0 comments on commit ab43fdc

Please sign in to comment.