void-packages/srcpkgs/burp-server/patches/fix-gcc6-narrowing.patch

50 lines
1.2 KiB
Diff

--- 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