Changeset c6ca3ee for lib


Ignore:
Timestamp:
2010-03-14T17:49:24Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
fb00989
Parents:
6a78c0e
Message:

Some const/etc cleanups submitted by domen@… back in bug #431.

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/misc.c

    r6a78c0e rc6ca3ee  
    3434#include "nogaim.h"
    3535#include "base64.h"
     36#include "md5.h"
    3637#include <stdio.h>
    3738#include <stdlib.h>
     
    521522
    522523/* Word wrapping. Yes, I know this isn't UTF-8 clean. I'm willing to take the risk. */
    523 char *word_wrap( char *msg, int line_len )
     524char *word_wrap( const char *msg, int line_len )
    524525{
    525526        GString *ret = g_string_sized_new( strlen( msg ) + 16 );
  • lib/misc.h

    r6a78c0e rc6ca3ee  
    6262G_MODULE_EXPORT struct ns_srv_reply *srv_lookup( char *service, char *protocol, char *domain );
    6363
    64 G_MODULE_EXPORT char *word_wrap( char *msg, int line_len );
     64G_MODULE_EXPORT char *word_wrap( const char *msg, int line_len );
    6565
    6666G_MODULE_EXPORT gboolean ssl_sockerr_again( void *ssl );
Note: See TracChangeset for help on using the changeset viewer.