aboutsummaryrefslogtreecommitdiff
path: root/net/adasockets/files
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-03-12 10:37:40 +0000
committerJohn Marino <marino@FreeBSD.org>2014-03-12 10:37:40 +0000
commit425c37be8b79108eb12256f440f345ad0d86867f (patch)
tree4e50f00d133dd5117b23060aaae479ff1c0f7929 /net/adasockets/files
parented17a6ccacd9a6b9a29739bd312701c678166154 (diff)
downloadports-425c37be8b79108eb12256f440f345ad0d86867f.tar.gz
ports-425c37be8b79108eb12256f440f345ad0d86867f.zip
net/adasockets: Fix code style before gcc49 comes in
Part of adasockets is built with -gnatg which invokes style checking. The upcoming GNAT compiler has stricter rules regarding the placement of the "then" keyword. Adasockets was failing to build based on style errors on gcc49. Patch this now on gcc47 to prepare for the Ada compiler transition. No bump; the code logic doesn't change.
Notes
Notes: svn path=/head/; revision=347972
Diffstat (limited to 'net/adasockets/files')
-rw-r--r--net/adasockets/files/patch-src_sockets-utils.adb17
1 files changed, 17 insertions, 0 deletions
diff --git a/net/adasockets/files/patch-src_sockets-utils.adb b/net/adasockets/files/patch-src_sockets-utils.adb
new file mode 100644
index 000000000000..4033ca11df8a
--- /dev/null
+++ b/net/adasockets/files/patch-src_sockets-utils.adb
@@ -0,0 +1,17 @@
+--- src/sockets-utils.adb.orig 2012-04-26 14:54:46.000000000 +0000
++++ src/sockets-utils.adb
+@@ -73,10 +73,10 @@ package body Sockets.Utils is
+ declare
+ Current : Character renames Something (Index);
+ begin
+- if (Current < '0'
+- or else Current > '9')
+- and then Current /= '.' then
+- return False;
++ if Current < '0' or else Current > '9' then
++ if Current /= '.' then
++ return False;
++ end if;
+ end if;
+ end;
+ end loop;