Skip to content

Commit

Permalink
remove warnings in read_matlab4.c
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13649 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Christian SChubert committed Oct 26, 2012
1 parent abe7b96 commit 6f51bb7
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions SimulationRuntime/c/util/read_matlab4.c
Expand Up @@ -5,6 +5,11 @@
#include <assert.h>
#include "read_matlab4.h"

// Make Visual Studio not complain about deprecated items
#ifdef _MSC_VER
#define strdup _strdup
#endif

const char *binTrans_char = "binTrans";
const char *binNormal_char = "binNormal";

Expand Down Expand Up @@ -55,12 +60,13 @@ void omc_free_matlab4_reader(ModelicaMatReader *reader)

void remSpaces(char *ch){
char *ch2 = ch;
int i,j=0;
unsigned int ui = 0;
unsigned int uj = 0;

for(i=0;i<=strlen(ch);i++){
if(ch[i]!=' '){
ch2[j] = ch[i];
j++;
for(ui=0;ui<=strlen(ch);ui++){
if(ch[ui]!=' '){
ch2[uj] = ch[ui];
uj++;
}
}
}
Expand Down

0 comments on commit 6f51bb7

Please sign in to comment.