title: *expected 'int *' but argument is of type 'int **'* warning in c
body: <p>I am getting warning message like : <strong>expected 'int *' but argument is of type 'int **'</strong>
  Below is my code:</p>
  
  <pre><code>#include&lt;string.h&gt;
  #include&lt;stdio.h&gt;
  #define MAX_DL_SLOWA 30
  
  
  void  szyfr(char oryginalne[MAX_DL_SLOWA], int* dlugosc, int zaszyfrowane[MAX_DL_SLOWA+1]) {
       int  i, j;
       *dlugosc = strlen(oryginalne);
       for (i = 0; i &lt; *dlugosc; i++) {
         if (i &lt; *dlugosc-1){
                  j = i + 1;
         }else{
              j = i + 1 - *dlugosc;
         }
         zaszyfrowane[i] = (int)oryginalne[j] - (int)'a';
       }
  }
  
  void main(){
  
      char slowo[MAX_DL_SLOWA];
      int* dlugosc;
      int kod[MAX_DL_SLOWA+1],i;
  
      //Wczytanie i szyfrowanie
      printf("Podaj slowo: ");
      scanf("%s",&amp;slowo);
      printf("\nTwoje slowo: %s",slowo);
      szyfr(slowo, &amp;dlugosc, kod);
      printf("\nTwoj kod: %s",kod);   
  }
  </code></pre>
  
  <p>I am getting this validation line where I am calling <em>szyfr</em> method with &amp;<em>dlugosc</em> as an arg .
  Anyone has any idea how could i change that to make it works without warnings?</p>