mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 02:42:56 +02:00
burp-server: fix FTBFS with gcc6
This commit is contained in:
parent
063b9afddb
commit
32f111f014
1 changed files with 49 additions and 0 deletions
49
srcpkgs/burp-server/patches/fix-gcc6-narrowing.patch
Normal file
49
srcpkgs/burp-server/patches/fix-gcc6-narrowing.patch
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
--- src/conf.c.orig
|
||||||
|
+++ src/conf.c
|
||||||
|
@@ -538,7 +538,7 @@ static void do_build_regex(struct strlis
|
||||||
|
struct fstype
|
||||||
|
{
|
||||||
|
const char *str;
|
||||||
|
- long flag;
|
||||||
|
+ unsigned int flag;
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct fstype fstypes[]={
|
||||||
|
@@ -590,7 +590,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-static int fstype_to_flag(const char *fstype, long *flag)
|
||||||
|
+static int fstype_to_flag(const char *fstype, unsigned int *flag)
|
||||||
|
{
|
||||||
|
#ifdef HAVE_LINUX_OS
|
||||||
|
int i=0;
|
||||||
|
--- src/strlist.c.orig
|
||||||
|
+++ src/strlist.c
|
||||||
|
@@ -21,7 +21,7 @@ void strlists_free(struct strlist **bd,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-int strlist_add(struct strlist ***bdlist, int *count, char *path, long flag)
|
||||||
|
+int strlist_add(struct strlist ***bdlist, int *count, char *path, unsigned int flag)
|
||||||
|
{
|
||||||
|
//int b=0;
|
||||||
|
struct strlist *bdnew=NULL;
|
||||||
|
--- src/strlist.h.orig
|
||||||
|
+++ src/strlist.h
|
||||||
|
@@ -11,13 +11,13 @@ typedef struct strlist strlist_t;
|
||||||
|
|
||||||
|
struct strlist
|
||||||
|
{
|
||||||
|
- long flag;
|
||||||
|
+ unsigned int flag;
|
||||||
|
char *path;
|
||||||
|
regex_t *re;
|
||||||
|
};
|
||||||
|
|
||||||
|
extern void strlists_free(struct strlist **bd, int count);
|
||||||
|
-extern int strlist_add(struct strlist ***bdlist, int *count, char *path, long flag);
|
||||||
|
+extern int strlist_add(struct strlist ***bdlist, int *count, char *path, unsigned int flag);
|
||||||
|
extern int strlist_sort(struct strlist **a, struct strlist **b);
|
||||||
|
|
||||||
|
#endif
|
Loading…
Add table
Reference in a new issue