diff options
Diffstat (limited to 'debian/patches/trivfs-remove-deprecated-stuff0001-pfinet-fix-sanity-check-at-translator-startup-time.patch')
-rw-r--r-- | debian/patches/trivfs-remove-deprecated-stuff0001-pfinet-fix-sanity-check-at-translator-startup-time.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/debian/patches/trivfs-remove-deprecated-stuff0001-pfinet-fix-sanity-check-at-translator-startup-time.patch b/debian/patches/trivfs-remove-deprecated-stuff0001-pfinet-fix-sanity-check-at-translator-startup-time.patch deleted file mode 100644 index 5b18ff08..00000000 --- a/debian/patches/trivfs-remove-deprecated-stuff0001-pfinet-fix-sanity-check-at-translator-startup-time.patch +++ /dev/null @@ -1,40 +0,0 @@ -From d9a22b92a226419c50fd13013741679ce7e7b624 Mon Sep 17 00:00:00 2001 -From: Justus Winter <4winter@informatik.uni-hamburg.de> -Date: Tue, 3 Nov 2015 22:44:07 +0100 -Subject: [PATCH hurd 1/2] pfinet: fix sanity check at translator startup time - -* pfinet/main.c (main): Properly iterate over `pfinet_protid_portclasses'. ---- - pfinet/main.c | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - -diff --git a/pfinet/main.c b/pfinet/main.c -index 46457a9..4bfa318 100644 ---- a/pfinet/main.c -+++ b/pfinet/main.c -@@ -269,6 +269,8 @@ extern void sk_init (void), skb_init (void); - extern int net_dev_init (void); - extern void inet6_proto_init (struct net_proto *pro); - -+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) -+ - int - main (int argc, - char **argv) -@@ -374,11 +376,11 @@ main (int argc, - int i; - /* Check that at least one portclass has been bound, - error out otherwise. */ -- for (i = 0; i < trivfs_protid_nportclasses; i ++) -+ for (i = 0; i < ARRAY_SIZE (pfinet_protid_portclasses); i++) - if (pfinet_protid_portclasses[i] != MACH_PORT_NULL) - break; - -- if (i == trivfs_protid_nportclasses) -+ if (i == ARRAY_SIZE (pfinet_protid_portclasses)) - error (1, 0, "should be started as a translator.\n"); - } - --- -2.1.4 - |