title: error: expected ‘}’ at end of input
body: <p>I have the following code:</p>
  
  <pre><code>#include &lt;libubuntuone-1.0/u1-music-store.h&gt;
  #include &lt;libsyncdaemon-1.0/libsyncdaemon/syncdaemon-authentication.h&gt;
  #include &lt;libsyncdaemon-1.0/libsyncdaemon/syncdaemon-credentials.h&gt;
  #include &lt;libsyncdaemon-1.0/libsyncdaemon/syncdaemon-daemon.h&gt;
  
  static void
  get_credentials (U1MusicStore *music_store,
                                   gchar **oauth_consumer_token,
                                   gchar **oauth_consumer_secret,
                                   gchar **oauth_token,
                                   gchar **oauth_token_secret)
  {
      SyncdaemonCredentials *credentials;
      *oauth_consumer_token = *oauth_consumer_secret = *oauth_token = *oauth_token_secret = NULL;
  
      *oauth_consumer_token = g_strdup (syncdaemon_credentials_get_consumer_key (credentials));
      *oauth_consumer_secret = g_strdup (syncdaemon_credentials_get_consumer_secret (credentials));
      *oauth_token = g_strdup (syncdaemon_credentials_get_token (credentials));
      *oauth_consumer_secret = g_strdup (syncdaemon_credentials_get_token_secret (credentials));
  }
  
  int main() 
  {
      return 0;
  }
  </code></pre>
  
  <p>and the only thing preventing it from compiling is the error message specified in the title of this question. The problem line has been identified as the closing brace of the <code>main</code> function, but that obviously isn't the case, and I can't see where else I could have missed out any parentheses. Can anyone else spot what I'm doing wrong here? </p>