summaryrefslogtreecommitdiff
path: root/databases/apq-odbc/files/patch-src_odbc__lib.c
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2022-02-28 22:16:01 +0100
committerRene Ladan <rene@FreeBSD.org>2022-02-28 22:34:25 +0100
commit8e2a89b541867f9b43bfefc59a9af5245cdb4c2c (patch)
tree6683a6255be5b39bf367ccb345a5f20f52cdd32c /databases/apq-odbc/files/patch-src_odbc__lib.c
parentwww/element-web: Update to 1.10.5 (diff)
cleanup: Remove ports depending on expired lang/gcc6-aux
Keep ports-mgmt/synth and dependencies (including lang/gcc6-aux itself) for now as synth is the only Ada port still maintained and might be somewhat high-profile. Removed ports: archivers/zip-ada cad/ghdl databases/adabase databases/apq databases/apq-mysql databases/apq-odbc databases/apq-pgsql devel/ada-util devel/adabooch devel/adaid devel/ahven devel/alog devel/aunit devel/florist-gpl devel/gprbuild devel/libspark2012 devel/matreshka devel/pcsc-ada devel/pragmarcs devel/sdl_gnat dns/ironsides graphics/generic_image_decoder lang/adacontrol lang/asis lang/gnat_util lang/lua-ada math/plplot-ada misc/excel-writer net/adasockets net/anet security/libadacrypt textproc/adabrowse textproc/templates_parser textproc/words textproc/xmlada x11-toolkits/gtkada x11-toolkits/gtkada3
Diffstat (limited to '')
-rw-r--r--databases/apq-odbc/files/patch-src_odbc__lib.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/databases/apq-odbc/files/patch-src_odbc__lib.c b/databases/apq-odbc/files/patch-src_odbc__lib.c
deleted file mode 100644
index e0e7b28f45c5..000000000000
--- a/databases/apq-odbc/files/patch-src_odbc__lib.c
+++ /dev/null
@@ -1,61 +0,0 @@
---- src/odbc_lib.c.orig 2012-01-10 14:17:05.000000000 -0500
-+++ src/odbc_lib.c
-@@ -1,3 +1,5 @@
-+#include <stdlib.h>
-+#include <string.h>
- #include "odbc_lib.h"
-
-
-@@ -43,10 +45,10 @@ void login_Information_Set_Up (ODBC_Logi
-
- int get_Login_String_Size (ODBC_Login_Information* login_Information) {
-
-+ int total_Size = 0;
- if (!is_Ready(login_Information))
- return(-1);
-
-- int total_Size = 0;
- total_Size += strlen(login_Information->p_Formatted_User_Name);
- total_Size += strlen(login_Information->p_Formatted_Password);
- total_Size += strlen(login_Information->p_Formatted_Data_Source);
-@@ -75,6 +77,7 @@ int print_Login_String (ODBC_Login_Infor
- strcat(destiny, login_Information->p_Formatted_User_Name);
- strcat(destiny, login_Information->p_Formatted_Password);
- strcat(destiny, login_Information->p_Formatted_Data_Source);
-+ return(0);
- }
-
- void reset_Login_Information (ODBC_Login_Information* login_Information) {
-@@ -241,7 +244,7 @@ void connect_With_Data_Source (ODBC_Faca
- + 1);
-
- if (SQL_SUCCEEDED(SQLDriverConnect(odbc_Facade->connection_Handle, NULL,
-- login_String, SQL_NTS, NULL, 0, NULL,
-+ (SQLCHAR*)login_String, SQL_NTS, NULL, 0, NULL,
- SQL_DRIVER_NOPROMPT)))
- switch_On_Connection(odbc_Facade);
-
-@@ -273,14 +276,14 @@ ODBC_Query_Results* create_And_Run_SQL_S
- //TODO: Return error string instead of printing it?
- void p_Print_Error_Information (ODBC_Facade* odbc_Facade) {
-
-- char ercode[6];
-+ SQLCHAR ercode[6];
- SQLINTEGER err;
-- char error[250];
-+ SQLCHAR error[250];
- SQLSMALLINT size;
-
- SQLGetDiagRec(SQL_HANDLE_DBC, odbc_Facade->environment_Handle, 1, ercode,
- &err, error, 250, &size);
-- printf ("\n%d, %s - %s\n", err, ercode, error);
-+ printf ("\n%d, %s - %s\n", (int)err, ercode, error);
- }
-
-
-@@ -289,4 +292,5 @@ void p_Print_Error_Information (ODBC_Fac
- char* alloc_String (int size) {
- char* return_Value = malloc(sizeof(char) * size);
- *return_Value = '\0';
-+ return return_Value;
- }