summaryrefslogtreecommitdiff
path: root/Src/glob.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2024-03-18 20:02:34 +0100
committerOliver Kiddle <opk@zsh.org>2024-03-18 20:02:34 +0100
commit57248b88830ce56adc243a40c7773fb3825cab34 (patch)
tree3d16fe0c1751200e8efb9223665fdc80e755cff9 /Src/glob.c
parent25182cc2e69ab1cfeeb3f0faa1d28d774393043b (diff)
downloadzsh-57248b88830ce56adc243a40c7773fb3825cab34.tar.gz
zsh-57248b88830ce56adc243a40c7773fb3825cab34.zip
52750: remove ansi2knr support for old pre-ansi K&R compilers
Diffstat (limited to 'Src/glob.c')
-rw-r--r--Src/glob.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/glob.c b/Src/glob.c
index bd199ace3..3e34f708e 100644
--- a/Src/glob.c
+++ b/Src/glob.c
@@ -133,7 +133,7 @@ typedef struct stat *Statptr; /* This makes the Ultrix compiler happy. Go figu
#define TT_TERABYTES 5
-typedef int (*TestMatchFunc) _((char *, struct stat *, off_t, char *));
+typedef int (*TestMatchFunc) (char *, struct stat *, off_t, char *);
struct qual {
struct qual *next; /* Next qualifier, must match */
@@ -1264,7 +1264,7 @@ zglob(LinkList list, LinkNode np, int nountok)
int sense, qualsfound;
off_t data;
char *sdata, *newcolonmod, *ptr;
- int (*func) _((char *, Statptr, off_t, char *));
+ int (*func) (char *, Statptr, off_t, char *);
/*
* Initialise state variables for current file pattern.
@@ -1310,7 +1310,7 @@ zglob(LinkList list, LinkNode np, int nountok)
if (*ptr == Dash)
*ptr = '-';
while (*s && !newcolonmod) {
- func = (int (*) _((char *, Statptr, off_t, char *)))0;
+ func = (int (*) (char *, Statptr, off_t, char *)) 0;
if (*s == ',') {
/* A comma separates alternative sets of qualifiers */
s++;
@@ -1961,7 +1961,7 @@ zglob(LinkList list, LinkNode np, int nountok)
/* Sort arguments in to lexical (and possibly numeric) order. *
* This is reversed to facilitate insertion into the list. */
qsort((void *) & matchbuf[0], matchct, sizeof(struct gmatch),
- (int (*) _((const void *, const void *)))gmatchcmp);
+ (int (*) (const void *, const void *)) gmatchcmp);
}
if (first < 0) {