diff options
| author | jgeboski <jgeboski@gmail.com> | 2015-01-17 06:02:40 -0500 | 
|---|---|---|
| committer | jgeboski <jgeboski@gmail.com> | 2015-01-17 06:02:40 -0500 | 
| commit | f712cc75857edbbd0e55948945d7ce07a8361c4d (patch) | |
| tree | 8f3110de7adcd747c8461a5f12536eedf1ec8936 | |
| parent | adc6f0329103651e8458f32bd1b92e7dce9d94e5 (diff) | |
| download | bitlbee-facebook-f712cc75857edbbd0e55948945d7ce07a8361c4d.tar.gz bitlbee-facebook-f712cc75857edbbd0e55948945d7ce07a8361c4d.tar.bz2 bitlbee-facebook-f712cc75857edbbd0e55948945d7ce07a8361c4d.tar.xz | |
Unconstify all GSLists
| -rw-r--r-- | facebook/facebook-api.c | 2 | ||||
| -rw-r--r-- | facebook/facebook-api.h | 8 | ||||
| -rw-r--r-- | facebook/facebook.c | 21 | 
3 files changed, 14 insertions, 17 deletions
| diff --git a/facebook/facebook-api.c b/facebook/facebook-api.c index 48a693c..f1277c8 100644 --- a/facebook/facebook-api.c +++ b/facebook/facebook-api.c @@ -1089,7 +1089,7 @@ finish:  void fb_api_thread_create(fb_api_t *api, GSList *uids)  {      fb_http_req_t *req; -    const GSList  *l; +    GSList        *l;      GString       *to;      fb_id_t       *uid; diff --git a/facebook/facebook-api.h b/facebook/facebook-api.h index 5a7b87f..6d5c9f2 100644 --- a/facebook/facebook-api.h +++ b/facebook/facebook-api.h @@ -148,7 +148,7 @@ struct fb_api_funcs       * @param users The #GSList of #fb_api_user.       * @param data  The user-defined data or NULL.       **/ -    void (*contacts) (fb_api_t *api, const GSList *users, gpointer data); +    void (*contacts) (fb_api_t *api, GSList *users, gpointer data);      /**       * The message function. This is called whenever the #fb_api has @@ -158,7 +158,7 @@ struct fb_api_funcs       * @param msgs The #GSList of #fb_api_msg.       * @param data The user-defined data or NULL.       **/ -    void (*message) (fb_api_t *api, const GSList *msgs, gpointer data); +    void (*message) (fb_api_t *api, GSList *msgs, gpointer data);      /**       * The presence function. This is called whenever the #fb_api has @@ -168,7 +168,7 @@ struct fb_api_funcs       * @param press The #GSList of #fb_api_pres.       * @param data  The user-defined data or NULL.       **/ -    void (*presence) (fb_api_t *api, const GSList *press, gpointer data); +    void (*presence) (fb_api_t *api, GSList *press, gpointer data);      /**       * The thread_create function. This is called whenever the #fb_api @@ -201,7 +201,7 @@ struct fb_api_funcs       * @param thrds The #GSList of #fb_api_thread.       * @param data  The user-defined data or NULL.       **/ -    void (*thread_list) (fb_api_t *api, const GSList *thrds, gpointer data); +    void (*thread_list) (fb_api_t *api, GSList *thrds, gpointer data);      /**       * The typing function. This is called whenever the #fb_api has diff --git a/facebook/facebook.c b/facebook/facebook.c index fa102b9..ce49eeb 100644 --- a/facebook/facebook.c +++ b/facebook/facebook.c @@ -77,12 +77,11 @@ static void fb_cb_api_connect(fb_api_t *api, gpointer data)   * @param users The #GSList of #fb_api_user.   * @param data  The user defined data, which is #fb_data.   **/ -static void fb_cb_api_contacts(fb_api_t *api, const GSList *users, -                               gpointer data) +static void fb_cb_api_contacts(fb_api_t *api, GSList *users, gpointer data)  {      fb_data_t     *fata = data;      fb_api_user_t *user; -    const GSList  *l; +    GSList        *l;      gchar          uid[FB_ID_STRMAX];      for (l = users; l != NULL; l = l->next) { @@ -104,12 +103,12 @@ static void fb_cb_api_contacts(fb_api_t *api, const GSList *users,   * @param msgs The #GSList of #fb_api_msg.   * @param data The user defined data, which is #fb_data.   **/ -static void fb_cb_api_message(fb_api_t *api, const GSList *msgs, gpointer data) +static void fb_cb_api_message(fb_api_t *api, GSList *msgs, gpointer data)  {      fb_data_t        *fata = data;      fb_api_msg_t     *msg;      struct groupchat *gc; -    const GSList     *l; +    GSList           *l;      gchar             uid[FB_ID_STRMAX];      gchar             tid[FB_ID_STRMAX]; @@ -137,12 +136,11 @@ static void fb_cb_api_message(fb_api_t *api, const GSList *msgs, gpointer data)   * @param press The #GSList of #fb_api_msg.   * @param data  The user defined data, which is #fb_data.   **/ -static void fb_cb_api_presence(fb_api_t *api, const GSList *press, -                               gpointer data) +static void fb_cb_api_presence(fb_api_t *api, GSList *press, gpointer data)  {      fb_data_t     *fata = data;      fb_api_pres_t *pres; -    const GSList  *l; +    GSList        *l;      guint          flags;      gchar          uid[FB_ID_STRMAX]; @@ -238,15 +236,14 @@ static void fb_cb_api_thread_info(fb_api_t *api, fb_api_thread_t *thrd,   * @param thrds The #GSList of #fb_api_thread.   * @param data  The user defined data, which is #fb_data.   **/ -static void fb_cb_api_thread_list(fb_api_t *api, const GSList *thrds, -                                  gpointer data) +static void fb_cb_api_thread_list(fb_api_t *api, GSList *thrds, gpointer data)  {      fb_data_t       *fata = data;      fb_api_thread_t *thrd;      fb_api_user_t   *user;      GSList          *phrds; -    const GSList    *l; -    const GSList    *m; +    GSList          *l; +    GSList          *m;      GString         *ln;      gpointer         mptr;      guint            i; | 
