Uncrustify maxscale

See script directory for method. The script to run in the top level
MaxScale directory is called maxscale-uncrustify.sh, which uses
another script, list-src, from the same directory (so you need to set
your PATH). The uncrustify version was 0.66.
This commit is contained in:
Niclas Antti
2018-09-09 22:26:19 +03:00
parent fa7ec95069
commit c447e5cf15
849 changed files with 35002 additions and 27238 deletions

View File

@ -8,10 +8,10 @@
using namespace std;
int execute_cmd(char * cmd, char ** res)
int execute_cmd(char* cmd, char** res)
{
char * result;
FILE *output = popen(cmd, "r");
char* result;
FILE* output = popen(cmd, "r");
if (output == NULL)
{
printf("Error opening ssh %s\n", strerror(errno));
@ -19,7 +19,7 @@ int execute_cmd(char * cmd, char ** res)
}
char buffer[10240];
size_t rsize = sizeof(buffer);
result = (char*)calloc(rsize, sizeof(char));
result = (char*)calloc(rsize, sizeof(char));
while (fgets(buffer, sizeof(buffer), output))
{
@ -40,5 +40,3 @@ int execute_cmd(char * cmd, char ** res)
return -1;
}
}