Changeset 597

Show
Ignore:
Timestamp:
07/22/05 09:16:23 (3 years ago)
Author:
jajcus
Message:

- updated to libgadu-1.6rc3

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libgadu/docs/protocol.html

    r592 r597  
    112112Przy opisie struktur, za�o�ono, �e <tt>char</tt> ma rozmiar 1 bajtu, 
    113113<tt>short</tt> 2 bajt�<tt>int</tt> 4 bajt�<tt>long long</tt> 8 bajt�U�ywaj�c architektur innych ni� i386, nale�y zwr� szczeg� uwag�a 
    114 rozmiar typ�miennych i kolejno��nak�Poza tym, wi�zo��ost�ych 
     114rozmiar typ�miennych i kolejno��ajt�Poza tym, wi�zo��ost�ych 
    115115obecnie kompilator�omy�lnie wyr�je zmienne do rozmiaru s�owa danej 
    116116architektury, wi�nale�y wy��czy�� funkcj�W przypadku gcc b�ie to 
    117 <tt>__attribute__ ((packed))</tt> zaraz za deklaracj� ka�dej struktury. a dla 
     117<tt>__attribute__ ((packed))</tt> zaraz za deklaracj� ka�dej struktury, a dla 
    118118Microsoft Visual C++ powinno pom�</p> 
    119119 
     
    263263 
    264264<div class="example"> 
    265 <pre>int gg_login_hash(char *password, int seed) 
     265<pre>int gg_login_hash(unsigned char *password, unsigned int seed) 
    266266{ 
    267267        unsigned int x, y, z; 
     
    294294<table class="tab" border="0" cellspacing="1" cellpadding="2" width="100%"> 
    295295<tr class="tabh"><td><b>Warto��b></td><td><b>Wersje klient�b></td></tr> 
     296<tr class="tabf"><td><tt>0x24</tt></td><td>6.1 (build 155)</td></tr> 
     297<tr class="tabf"><td><tt>0x22</tt></td><td>6.0 (build 140)</td></tr> 
     298<tr class="tabf"><td><tt>0x21</tt></td><td>6.0 (build 133)</td></tr> 
    296299<tr class="tabf"><td><tt>0x20</tt></td><td>6.0</td></tr> 
    297300<tr class="tabf"><td><tt>0x1e</tt></td><td>5.7 beta (build 121)</td></tr> 
     
    322325<div class="c"> 
    323326<pre>#define GG_HAS_AUDIO_MASK 0x40000000</pre> 
     327</div> 
     328 
     329<p> 
     330Je�li osoba korzysta z bramki Era Omnix, do wersji dodawana jest warto��</p> 
     331 
     332<div class="c"> 
     333<pre>#define GG_ERA_OMNIX_MASK 0x04000000</pre> 
    324334</div> 
    325335 
     
    491501<tr class="tabf"><td><tt>GG_UINFLAG_UNKNOWN2</tt></td><td><tt>0x20</tt></td><td>Flaga spotykana, gdy u�ytkownik staje si�iedost�y</td></tr> 
    492502<tr class="tabf"><td><tt>GG_UINFLAG_VOICE</tt></td><td><tt>0x40</tt></td><td>U�ytkownik mo�e prowadzi�ozmowy g�osowe</td></tr> 
     503<tr class="tabf"><td><tt>GG_UINFLAG_ERA_OMNIX</tt></td><td><tt>0x08</tt></td><td>U�ytkownik ��czy si�rzez bramk�ra Omnix</td></tr> 
    493504</table> 
    494505 
     
    650661<p> 
    651662Od wersji 4.8.1 mo�liwe jest r�e� dodawanie do wiadomo�ci r�ch 
    652 atrybut�ekstu jak pogrubienie czy kolory. Niezb�e jest do��czenie 
     663atrybut�ekstu, jak pogrubienie czy kolory. Niezb�e jest do��czenie 
    653664nast�j�cej struktury: 
    654665</p> 
     
    739750        int crc32;              <i>/* suma kontrolna */</i> 
    740751        char filename[];        <i>/* nazwa pliku, nie musi wyst�pi�/</i> 
    741         char image[];           <i>/* zawarto��brazka */</i> 
     752        char image[];           <i>/* zawarto��brazka, nie musi wyst�pi�/</i> 
    742753};</pre> 
    743754</div> 
     
    745756<p> 
    746757Je�li d�ugo��truktury <tt>gg_msg_image_reply</tt> jest d�u�sza ni� 1909 
    747 bajt�tre��brazka jest dzielona na kilka pakiet�ie przeraczaj�cych 
     758bajt�tre��brazka jest dzielona na kilka pakiet�ie przekraczaj�cych 
    7487591909 bajt�Pierwszy pakiet ma pole <tt>flag</tt> r� 0x05 i ma wype�nione 
    749760pole <tt>filename</tt>, a w kolejnych pole <tt>flag</tt> jest r� 0x06 
    750761i pole <tt>filename</tt> w og�nie wyst�je (nawet bajt zako�nia ci�gu 
    751762znak� 
     763</p> 
     764 
     765<p> 
     766Je�li otrzymamy pakiet bez pola <tt>filename</tt> oraz <tt>image</tt>, oznacza 
     767to, �e klient nie posiada ��danego obrazka. 
    752768</p> 
    753769 
     
    17691785        <li><b>Pawe� Piwowar</b> (alfapawel%go2.pl): format czasu.</li> 
    17701786        <li><b>Tomasz Chili�</b> (chilek%chilan.com): nowo�ci w 5.0.2.</li> 
    1771         <li><b>Rados�aw Nowak</b> (rano%ranosoft.com): uzupe�nienie statusu 
     1787        <li><b>Rados�aw Nowak</b> (rano%ranosoft.net): uzupe�nienie statusu 
    17721788        opisowego, wersja 5.0.3.</li> 
    17731789        <li><b>Walerian Soko�owski</b>: pierwsza wersja opisu protoko�u 
     
    17791795 
    17801796<font color="silver"> 
    1781 $Id: protocol.html,v 1.60 2004/12/21 21:42:43 wojtekka Exp $ 
     1797$Id: protocol.html,v 1.68 2005/07/17 12:46:06 szalik Exp $ 
    17821798</font> 
    17831799 
  • trunk/libgadu/lib

    • Property svn:ignore set to
      libgadu-config.h
      .libs
      libgadu.pc
      .deps
      Makefile
  • trunk/libgadu/lib/Makefile.in

    r592 r597  
    1 # Makefile.in generated by automake 1.8.2 from Makefile.am. 
     1# Makefile.in generated by automake 1.9.4 from Makefile.am. 
    22# @configure_input@ 
    33 
     
    4040PRE_UNINSTALL = : 
    4141POST_UNINSTALL = : 
     42build_triplet = @build@ 
    4243host_triplet = @host@ 
    4344subdir = lib 
     
    5051am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
    5152        $(ACLOCAL_M4) 
    52 mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs 
     53mkinstalldirs = $(install_sh) -d 
    5354CONFIG_HEADER = $(top_builddir)/config.h 
    5455CONFIG_CLEAN_FILES = libgadu.pc 
     
    6162libgadu_la_OBJECTS = $(am_libgadu_la_OBJECTS) 
    6263DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) 
    63 depcomp = $(SHELL) $(top_srcdir)/../depcomp 
     64depcomp = $(SHELL) $(top_srcdir)/depcomp 
    6465am__depfiles_maybe = depfiles 
    65 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/libgadu_la-common.Plo \ 
    66 @AMDEP_TRUE@    ./$(DEPDIR)/libgadu_la-dcc.Plo \ 
    67 @AMDEP_TRUE@    ./$(DEPDIR)/libgadu_la-events.Plo \ 
    68 @AMDEP_TRUE@    ./$(DEPDIR)/libgadu_la-http.Plo \ 
    69 @AMDEP_TRUE@    ./$(DEPDIR)/libgadu_la-libgadu.Plo \ 
    70 @AMDEP_TRUE@    ./$(DEPDIR)/libgadu_la-obsolete.Plo \ 
    71 @AMDEP_TRUE@    ./$(DEPDIR)/libgadu_la-pubdir.Plo \ 
    72 @AMDEP_TRUE@    ./$(DEPDIR)/libgadu_la-pubdir50.Plo 
    7366COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 
    7467        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 
    75 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \ 
     68LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ 
    7669        $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 
    7770        $(AM_CFLAGS) $(CFLAGS) 
    7871CCLD = $(CC) 
    79 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 
     72LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 
    8073        $(AM_LDFLAGS) $(LDFLAGS) -o $@ 
    8174SOURCES = $(libgadu_la_SOURCES) 
     
    164157am__leading_dot = @am__leading_dot@ 
    165158am__quote = @am__quote@ 
     159am__tar = @am__tar@ 
     160am__untar = @am__untar@ 
    166161bindir = @bindir@ 
    167162build = @build@ 
     
    258253        @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ 
    259254          dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 
    260           test "$$dir" = "$$p" && dir=.; \ 
     255          test "$$dir" != "$$p" || dir=.; \ 
    261256          echo "rm -f \"$${dir}/so_locations\""; \ 
    262257          rm -f "$${dir}/so_locations"; \ 
     
    284279@am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 
    285280@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 
    286 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 
    287 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
     281@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    288282@am__fastdepCC_FALSE@   $(COMPILE) -c $< 
    289283 
     
    292286@am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 
    293287@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 
    294 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 
    295 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
     288@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    296289@am__fastdepCC_FALSE@   $(COMPILE) -c `$(CYGPATH_W) '$<'` 
    297290 
     
    300293@am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 
    301294@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 
    302 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ 
    303 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
     295@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    304296@am__fastdepCC_FALSE@   $(LTCOMPILE) -c -o $@ $< 
    305297 
    306 libgadu_la-common.o: common.c 
    307 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-common.o -MD -MP -MF "$(DEPDIR)/libgadu_la-common.Tpo" -c -o libgadu_la-common.o `test -f 'common.c' || echo '$(srcdir)/'`common.c; \ 
    308 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-common.Tpo" "$(DEPDIR)/libgadu_la-common.Po"; else rm -f "$(DEPDIR)/libgadu_la-common.Tpo"; exit 1; fi 
    309 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='common.c' object='libgadu_la-common.o' libtool=no @AMDEPBACKSLASH@ 
    310 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-common.Po' tmpdepfile='$(DEPDIR)/libgadu_la-common.TPo' @AMDEPBACKSLASH@ 
    311 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    312 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-common.o `test -f 'common.c' || echo '$(srcdir)/'`common.c 
    313  
    314 libgadu_la-common.obj: common.c 
    315 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-common.obj -MD -MP -MF "$(DEPDIR)/libgadu_la-common.Tpo" -c -o libgadu_la-common.obj `if test -f 'common.c'; then $(CYGPATH_W) 'common.c'; else $(CYGPATH_W) '$(srcdir)/common.c'; fi`; \ 
    316 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-common.Tpo" "$(DEPDIR)/libgadu_la-common.Po"; else rm -f "$(DEPDIR)/libgadu_la-common.Tpo"; exit 1; fi 
    317 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='common.c' object='libgadu_la-common.obj' libtool=no @AMDEPBACKSLASH@ 
    318 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-common.Po' tmpdepfile='$(DEPDIR)/libgadu_la-common.TPo' @AMDEPBACKSLASH@ 
    319 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    320 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-common.obj `if test -f 'common.c'; then $(CYGPATH_W) 'common.c'; else $(CYGPATH_W) '$(srcdir)/common.c'; fi` 
    321  
    322298libgadu_la-common.lo: common.c 
    323 @am__fastdepCC_TRUE@    if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-common.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-common.Tpo" -c -o libgadu_la-common.lo `test -f 'common.c' || echo '$(srcdir)/'`common.c; \ 
     299@am__fastdepCC_TRUE@    if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-common.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-common.Tpo" -c -o libgadu_la-common.lo `test -f 'common.c' || echo '$(srcdir)/'`common.c; \ 
    324300@am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-common.Tpo" "$(DEPDIR)/libgadu_la-common.Plo"; else rm -f "$(DEPDIR)/libgadu_la-common.Tpo"; exit 1; fi 
    325301@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='common.c' object='libgadu_la-common.lo' libtool=yes @AMDEPBACKSLASH@ 
    326 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-common.Plo' tmpdepfile='$(DEPDIR)/libgadu_la-common.TPlo' @AMDEPBACKSLASH@ 
    327 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    328 @am__fastdepCC_FALSE@   $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-common.lo `test -f 'common.c' || echo '$(srcdir)/'`common.c 
    329  
    330 libgadu_la-libgadu.o: libgadu.c 
    331 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-libgadu.o -MD -MP -MF "$(DEPDIR)/libgadu_la-libgadu.Tpo" -c -o libgadu_la-libgadu.o `test -f 'libgadu.c' || echo '$(srcdir)/'`libgadu.c; \ 
    332 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-libgadu.Tpo" "$(DEPDIR)/libgadu_la-libgadu.Po"; else rm -f "$(DEPDIR)/libgadu_la-libgadu.Tpo"; exit 1; fi 
    333 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='libgadu.c' object='libgadu_la-libgadu.o' libtool=no @AMDEPBACKSLASH@ 
    334 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-libgadu.Po' tmpdepfile='$(DEPDIR)/libgadu_la-libgadu.TPo' @AMDEPBACKSLASH@ 
    335 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    336 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-libgadu.o `test -f 'libgadu.c' || echo '$(srcdir)/'`libgadu.c 
    337  
    338 libgadu_la-libgadu.obj: libgadu.c 
    339 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-libgadu.obj -MD -MP -MF "$(DEPDIR)/libgadu_la-libgadu.Tpo" -c -o libgadu_la-libgadu.obj `if test -f 'libgadu.c'; then $(CYGPATH_W) 'libgadu.c'; else $(CYGPATH_W) '$(srcdir)/libgadu.c'; fi`; \ 
    340 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-libgadu.Tpo" "$(DEPDIR)/libgadu_la-libgadu.Po"; else rm -f "$(DEPDIR)/libgadu_la-libgadu.Tpo"; exit 1; fi 
    341 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='libgadu.c' object='libgadu_la-libgadu.obj' libtool=no @AMDEPBACKSLASH@ 
    342 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-libgadu.Po' tmpdepfile='$(DEPDIR)/libgadu_la-libgadu.TPo' @AMDEPBACKSLASH@ 
    343 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    344 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-libgadu.obj `if test -f 'libgadu.c'; then $(CYGPATH_W) 'libgadu.c'; else $(CYGPATH_W) '$(srcdir)/libgadu.c'; fi` 
     302@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
     303@am__fastdepCC_FALSE@   $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-common.lo `test -f 'common.c' || echo '$(srcdir)/'`common.c 
    345304 
    346305libgadu_la-libgadu.lo: libgadu.c 
    347 @am__fastdepCC_TRUE@    if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-libgadu.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-libgadu.Tpo" -c -o libgadu_la-libgadu.lo `test -f 'libgadu.c' || echo '$(srcdir)/'`libgadu.c; \ 
     306@am__fastdepCC_TRUE@    if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-libgadu.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-libgadu.Tpo" -c -o libgadu_la-libgadu.lo `test -f 'libgadu.c' || echo '$(srcdir)/'`libgadu.c; \ 
    348307@am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-libgadu.Tpo" "$(DEPDIR)/libgadu_la-libgadu.Plo"; else rm -f "$(DEPDIR)/libgadu_la-libgadu.Tpo"; exit 1; fi 
    349308@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='libgadu.c' object='libgadu_la-libgadu.lo' libtool=yes @AMDEPBACKSLASH@ 
    350 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-libgadu.Plo' tmpdepfile='$(DEPDIR)/libgadu_la-libgadu.TPlo' @AMDEPBACKSLASH@ 
    351 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    352 @am__fastdepCC_FALSE@   $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-libgadu.lo `test -f 'libgadu.c' || echo '$(srcdir)/'`libgadu.c 
    353  
    354 libgadu_la-pubdir.o: pubdir.c 
    355 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-pubdir.o -MD -MP -MF "$(DEPDIR)/libgadu_la-pubdir.Tpo" -c -o libgadu_la-pubdir.o `test -f 'pubdir.c' || echo '$(srcdir)/'`pubdir.c; \ 
    356 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-pubdir.Tpo" "$(DEPDIR)/libgadu_la-pubdir.Po"; else rm -f "$(DEPDIR)/libgadu_la-pubdir.Tpo"; exit 1; fi 
    357 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='pubdir.c' object='libgadu_la-pubdir.o' libtool=no @AMDEPBACKSLASH@ 
    358 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-pubdir.Po' tmpdepfile='$(DEPDIR)/libgadu_la-pubdir.TPo' @AMDEPBACKSLASH@ 
    359 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    360 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-pubdir.o `test -f 'pubdir.c' || echo '$(srcdir)/'`pubdir.c 
    361  
    362 libgadu_la-pubdir.obj: pubdir.c 
    363 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-pubdir.obj -MD -MP -MF "$(DEPDIR)/libgadu_la-pubdir.Tpo" -c -o libgadu_la-pubdir.obj `if test -f 'pubdir.c'; then $(CYGPATH_W) 'pubdir.c'; else $(CYGPATH_W) '$(srcdir)/pubdir.c'; fi`; \ 
    364 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-pubdir.Tpo" "$(DEPDIR)/libgadu_la-pubdir.Po"; else rm -f "$(DEPDIR)/libgadu_la-pubdir.Tpo"; exit 1; fi 
    365 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='pubdir.c' object='libgadu_la-pubdir.obj' libtool=no @AMDEPBACKSLASH@ 
    366 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-pubdir.Po' tmpdepfile='$(DEPDIR)/libgadu_la-pubdir.TPo' @AMDEPBACKSLASH@ 
    367 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    368 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-pubdir.obj `if test -f 'pubdir.c'; then $(CYGPATH_W) 'pubdir.c'; else $(CYGPATH_W) '$(srcdir)/pubdir.c'; fi` 
     309@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
     310@am__fastdepCC_FALSE@   $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-libgadu.lo `test -f 'libgadu.c' || echo '$(srcdir)/'`libgadu.c 
    369311 
    370312libgadu_la-pubdir.lo: pubdir.c 
    371 @am__fastdepCC_TRUE@    if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-pubdir.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-pubdir.Tpo" -c -o libgadu_la-pubdir.lo `test -f 'pubdir.c' || echo '$(srcdir)/'`pubdir.c; \ 
     313@am__fastdepCC_TRUE@    if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-pubdir.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-pubdir.Tpo" -c -o libgadu_la-pubdir.lo `test -f 'pubdir.c' || echo '$(srcdir)/'`pubdir.c; \ 
    372314@am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-pubdir.Tpo" "$(DEPDIR)/libgadu_la-pubdir.Plo"; else rm -f "$(DEPDIR)/libgadu_la-pubdir.Tpo"; exit 1; fi 
    373315@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='pubdir.c' object='libgadu_la-pubdir.lo' libtool=yes @AMDEPBACKSLASH@ 
    374 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-pubdir.Plo' tmpdepfile='$(DEPDIR)/libgadu_la-pubdir.TPlo' @AMDEPBACKSLASH@ 
    375 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    376 @am__fastdepCC_FALSE@   $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-pubdir.lo `test -f 'pubdir.c' || echo '$(srcdir)/'`pubdir.c 
    377  
    378 libgadu_la-http.o: http.c 
    379 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-http.o -MD -MP -MF "$(DEPDIR)/libgadu_la-http.Tpo" -c -o libgadu_la-http.o `test -f 'http.c' || echo '$(srcdir)/'`http.c; \ 
    380 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-http.Tpo" "$(DEPDIR)/libgadu_la-http.Po"; else rm -f "$(DEPDIR)/libgadu_la-http.Tpo"; exit 1; fi 
    381 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='http.c' object='libgadu_la-http.o' libtool=no @AMDEPBACKSLASH@ 
    382 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-http.Po' tmpdepfile='$(DEPDIR)/libgadu_la-http.TPo' @AMDEPBACKSLASH@ 
    383 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    384 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-http.o `test -f 'http.c' || echo '$(srcdir)/'`http.c 
    385  
    386 libgadu_la-http.obj: http.c 
    387 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-http.obj -MD -MP -MF "$(DEPDIR)/libgadu_la-http.Tpo" -c -o libgadu_la-http.obj `if test -f 'http.c'; then $(CYGPATH_W) 'http.c'; else $(CYGPATH_W) '$(srcdir)/http.c'; fi`; \ 
    388 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-http.Tpo" "$(DEPDIR)/libgadu_la-http.Po"; else rm -f "$(DEPDIR)/libgadu_la-http.Tpo"; exit 1; fi 
    389 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='http.c' object='libgadu_la-http.obj' libtool=no @AMDEPBACKSLASH@ 
    390 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-http.Po' tmpdepfile='$(DEPDIR)/libgadu_la-http.TPo' @AMDEPBACKSLASH@ 
    391 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    392 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-http.obj `if test -f 'http.c'; then $(CYGPATH_W) 'http.c'; else $(CYGPATH_W) '$(srcdir)/http.c'; fi` 
     316@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
     317@am__fastdepCC_FALSE@   $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-pubdir.lo `test -f 'pubdir.c' || echo '$(srcdir)/'`pubdir.c 
    393318 
    394319libgadu_la-http.lo: http.c 
    395 @am__fastdepCC_TRUE@    if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-http.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-http.Tpo" -c -o libgadu_la-http.lo `test -f 'http.c' || echo '$(srcdir)/'`http.c; \ 
     320@am__fastdepCC_TRUE@    if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-http.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-http.Tpo" -c -o libgadu_la-http.lo `test -f 'http.c' || echo '$(srcdir)/'`http.c; \ 
    396321@am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-http.Tpo" "$(DEPDIR)/libgadu_la-http.Plo"; else rm -f "$(DEPDIR)/libgadu_la-http.Tpo"; exit 1; fi 
    397322@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='http.c' object='libgadu_la-http.lo' libtool=yes @AMDEPBACKSLASH@ 
    398 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-http.Plo' tmpdepfile='$(DEPDIR)/libgadu_la-http.TPlo' @AMDEPBACKSLASH@ 
    399 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    400 @am__fastdepCC_FALSE@   $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-http.lo `test -f 'http.c' || echo '$(srcdir)/'`http.c 
    401  
    402 libgadu_la-dcc.o: dcc.c 
    403 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-dcc.o -MD -MP -MF "$(DEPDIR)/libgadu_la-dcc.Tpo" -c -o libgadu_la-dcc.o `test -f 'dcc.c' || echo '$(srcdir)/'`dcc.c; \ 
    404 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-dcc.Tpo" "$(DEPDIR)/libgadu_la-dcc.Po"; else rm -f "$(DEPDIR)/libgadu_la-dcc.Tpo"; exit 1; fi 
    405 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='dcc.c' object='libgadu_la-dcc.o' libtool=no @AMDEPBACKSLASH@ 
    406 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-dcc.Po' tmpdepfile='$(DEPDIR)/libgadu_la-dcc.TPo' @AMDEPBACKSLASH@ 
    407 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    408 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-dcc.o `test -f 'dcc.c' || echo '$(srcdir)/'`dcc.c 
    409  
    410 libgadu_la-dcc.obj: dcc.c 
    411 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-dcc.obj -MD -MP -MF "$(DEPDIR)/libgadu_la-dcc.Tpo" -c -o libgadu_la-dcc.obj `if test -f 'dcc.c'; then $(CYGPATH_W) 'dcc.c'; else $(CYGPATH_W) '$(srcdir)/dcc.c'; fi`; \ 
    412 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-dcc.Tpo" "$(DEPDIR)/libgadu_la-dcc.Po"; else rm -f "$(DEPDIR)/libgadu_la-dcc.Tpo"; exit 1; fi 
    413 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='dcc.c' object='libgadu_la-dcc.obj' libtool=no @AMDEPBACKSLASH@ 
    414 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-dcc.Po' tmpdepfile='$(DEPDIR)/libgadu_la-dcc.TPo' @AMDEPBACKSLASH@ 
    415 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    416 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-dcc.obj `if test -f 'dcc.c'; then $(CYGPATH_W) 'dcc.c'; else $(CYGPATH_W) '$(srcdir)/dcc.c'; fi` 
     323@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
     324@am__fastdepCC_FALSE@   $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-http.lo `test -f 'http.c' || echo '$(srcdir)/'`http.c 
    417325 
    418326libgadu_la-dcc.lo: dcc.c 
    419 @am__fastdepCC_TRUE@    if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-dcc.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-dcc.Tpo" -c -o libgadu_la-dcc.lo `test -f 'dcc.c' || echo '$(srcdir)/'`dcc.c; \ 
     327@am__fastdepCC_TRUE@    if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-dcc.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-dcc.Tpo" -c -o libgadu_la-dcc.lo `test -f 'dcc.c' || echo '$(srcdir)/'`dcc.c; \ 
    420328@am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-dcc.Tpo" "$(DEPDIR)/libgadu_la-dcc.Plo"; else rm -f "$(DEPDIR)/libgadu_la-dcc.Tpo"; exit 1; fi 
    421329@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='dcc.c' object='libgadu_la-dcc.lo' libtool=yes @AMDEPBACKSLASH@ 
    422 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-dcc.Plo' tmpdepfile='$(DEPDIR)/libgadu_la-dcc.TPlo' @AMDEPBACKSLASH@ 
    423 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    424 @am__fastdepCC_FALSE@   $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-dcc.lo `test -f 'dcc.c' || echo '$(srcdir)/'`dcc.c 
    425  
    426 libgadu_la-events.o: events.c 
    427 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-events.o -MD -MP -MF "$(DEPDIR)/libgadu_la-events.Tpo" -c -o libgadu_la-events.o `test -f 'events.c' || echo '$(srcdir)/'`events.c; \ 
    428 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-events.Tpo" "$(DEPDIR)/libgadu_la-events.Po"; else rm -f "$(DEPDIR)/libgadu_la-events.Tpo"; exit 1; fi 
    429 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='events.c' object='libgadu_la-events.o' libtool=no @AMDEPBACKSLASH@ 
    430 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-events.Po' tmpdepfile='$(DEPDIR)/libgadu_la-events.TPo' @AMDEPBACKSLASH@ 
    431 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    432 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-events.o `test -f 'events.c' || echo '$(srcdir)/'`events.c 
    433  
    434 libgadu_la-events.obj: events.c 
    435 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-events.obj -MD -MP -MF "$(DEPDIR)/libgadu_la-events.Tpo" -c -o libgadu_la-events.obj `if test -f 'events.c'; then $(CYGPATH_W) 'events.c'; else $(CYGPATH_W) '$(srcdir)/events.c'; fi`; \ 
    436 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-events.Tpo" "$(DEPDIR)/libgadu_la-events.Po"; else rm -f "$(DEPDIR)/libgadu_la-events.Tpo"; exit 1; fi 
    437 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='events.c' object='libgadu_la-events.obj' libtool=no @AMDEPBACKSLASH@ 
    438 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-events.Po' tmpdepfile='$(DEPDIR)/libgadu_la-events.TPo' @AMDEPBACKSLASH@ 
    439 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    440 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-events.obj `if test -f 'events.c'; then $(CYGPATH_W) 'events.c'; else $(CYGPATH_W) '$(srcdir)/events.c'; fi` 
     330@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
     331@am__fastdepCC_FALSE@   $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-dcc.lo `test -f 'dcc.c' || echo '$(srcdir)/'`dcc.c 
    441332 
    442333libgadu_la-events.lo: events.c 
    443 @am__fastdepCC_TRUE@    if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-events.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-events.Tpo" -c -o libgadu_la-events.lo `test -f 'events.c' || echo '$(srcdir)/'`events.c; \ 
     334@am__fastdepCC_TRUE@    if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-events.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-events.Tpo" -c -o libgadu_la-events.lo `test -f 'events.c' || echo '$(srcdir)/'`events.c; \ 
    444335@am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-events.Tpo" "$(DEPDIR)/libgadu_la-events.Plo"; else rm -f "$(DEPDIR)/libgadu_la-events.Tpo"; exit 1; fi 
    445336@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='events.c' object='libgadu_la-events.lo' libtool=yes @AMDEPBACKSLASH@ 
    446 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-events.Plo' tmpdepfile='$(DEPDIR)/libgadu_la-events.TPlo' @AMDEPBACKSLASH@ 
    447 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    448 @am__fastdepCC_FALSE@   $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-events.lo `test -f 'events.c' || echo '$(srcdir)/'`events.c 
    449  
    450 libgadu_la-pubdir50.o: pubdir50.c 
    451 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-pubdir50.o -MD -MP -MF "$(DEPDIR)/libgadu_la-pubdir50.Tpo" -c -o libgadu_la-pubdir50.o `test -f 'pubdir50.c' || echo '$(srcdir)/'`pubdir50.c; \ 
    452 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-pubdir50.Tpo" "$(DEPDIR)/libgadu_la-pubdir50.Po"; else rm -f "$(DEPDIR)/libgadu_la-pubdir50.Tpo"; exit 1; fi 
    453 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='pubdir50.c' object='libgadu_la-pubdir50.o' libtool=no @AMDEPBACKSLASH@ 
    454 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-pubdir50.Po' tmpdepfile='$(DEPDIR)/libgadu_la-pubdir50.TPo' @AMDEPBACKSLASH@ 
    455 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    456 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-pubdir50.o `test -f 'pubdir50.c' || echo '$(srcdir)/'`pubdir50.c 
    457  
    458 libgadu_la-pubdir50.obj: pubdir50.c 
    459 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-pubdir50.obj -MD -MP -MF "$(DEPDIR)/libgadu_la-pubdir50.Tpo" -c -o libgadu_la-pubdir50.obj `if test -f 'pubdir50.c'; then $(CYGPATH_W) 'pubdir50.c'; else $(CYGPATH_W) '$(srcdir)/pubdir50.c'; fi`; \ 
    460 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-pubdir50.Tpo" "$(DEPDIR)/libgadu_la-pubdir50.Po"; else rm -f "$(DEPDIR)/libgadu_la-pubdir50.Tpo"; exit 1; fi 
    461 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='pubdir50.c' object='libgadu_la-pubdir50.obj' libtool=no @AMDEPBACKSLASH@ 
    462 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-pubdir50.Po' tmpdepfile='$(DEPDIR)/libgadu_la-pubdir50.TPo' @AMDEPBACKSLASH@ 
    463 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    464 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-pubdir50.obj `if test -f 'pubdir50.c'; then $(CYGPATH_W) 'pubdir50.c'; else $(CYGPATH_W) '$(srcdir)/pubdir50.c'; fi` 
     337@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
     338@am__fastdepCC_FALSE@   $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-events.lo `test -f 'events.c' || echo '$(srcdir)/'`events.c 
    465339 
    466340libgadu_la-pubdir50.lo: pubdir50.c 
    467 @am__fastdepCC_TRUE@    if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-pubdir50.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-pubdir50.Tpo" -c -o libgadu_la-pubdir50.lo `test -f 'pubdir50.c' || echo '$(srcdir)/'`pubdir50.c; \ 
     341@am__fastdepCC_TRUE@    if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-pubdir50.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-pubdir50.Tpo" -c -o libgadu_la-pubdir50.lo `test -f 'pubdir50.c' || echo '$(srcdir)/'`pubdir50.c; \ 
    468342@am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-pubdir50.Tpo" "$(DEPDIR)/libgadu_la-pubdir50.Plo"; else rm -f "$(DEPDIR)/libgadu_la-pubdir50.Tpo"; exit 1; fi 
    469343@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='pubdir50.c' object='libgadu_la-pubdir50.lo' libtool=yes @AMDEPBACKSLASH@ 
    470 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-pubdir50.Plo' tmpdepfile='$(DEPDIR)/libgadu_la-pubdir50.TPlo' @AMDEPBACKSLASH@ 
    471 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    472 @am__fastdepCC_FALSE@   $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-pubdir50.lo `test -f 'pubdir50.c' || echo '$(srcdir)/'`pubdir50.c 
    473  
    474 libgadu_la-obsolete.o: obsolete.c 
    475 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-obsolete.o -MD -MP -MF "$(DEPDIR)/libgadu_la-obsolete.Tpo" -c -o libgadu_la-obsolete.o `test -f 'obsolete.c' || echo '$(srcdir)/'`obsolete.c; \ 
    476 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-obsolete.Tpo" "$(DEPDIR)/libgadu_la-obsolete.Po"; else rm -f "$(DEPDIR)/libgadu_la-obsolete.Tpo"; exit 1; fi 
    477 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='obsolete.c' object='libgadu_la-obsolete.o' libtool=no @AMDEPBACKSLASH@ 
    478 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-obsolete.Po' tmpdepfile='$(DEPDIR)/libgadu_la-obsolete.TPo' @AMDEPBACKSLASH@ 
    479 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    480 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-obsolete.o `test -f 'obsolete.c' || echo '$(srcdir)/'`obsolete.c 
    481  
    482 libgadu_la-obsolete.obj: obsolete.c 
    483 @am__fastdepCC_TRUE@    if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-obsolete.obj -MD -MP -MF "$(DEPDIR)/libgadu_la-obsolete.Tpo" -c -o libgadu_la-obsolete.obj `if test -f 'obsolete.c'; then $(CYGPATH_W) 'obsolete.c'; else $(CYGPATH_W) '$(srcdir)/obsolete.c'; fi`; \ 
    484 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-obsolete.Tpo" "$(DEPDIR)/libgadu_la-obsolete.Po"; else rm -f "$(DEPDIR)/libgadu_la-obsolete.Tpo"; exit 1; fi 
    485 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='obsolete.c' object='libgadu_la-obsolete.obj' libtool=no @AMDEPBACKSLASH@ 
    486 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-obsolete.Po' tmpdepfile='$(DEPDIR)/libgadu_la-obsolete.TPo' @AMDEPBACKSLASH@ 
    487 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    488 @am__fastdepCC_FALSE@   $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-obsolete.obj `if test -f 'obsolete.c'; then $(CYGPATH_W) 'obsolete.c'; else $(CYGPATH_W) '$(srcdir)/obsolete.c'; fi` 
     344@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
     345@am__fastdepCC_FALSE@   $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-pubdir50.lo `test -f 'pubdir50.c' || echo '$(srcdir)/'`pubdir50.c 
    489346 
    490347libgadu_la-obsolete.lo: obsolete.c 
    491 @am__fastdepCC_TRUE@    if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-obsolete.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-obsolete.Tpo" -c -o libgadu_la-obsolete.lo `test -f 'obsolete.c' || echo '$(srcdir)/'`obsolete.c; \ 
     348@am__fastdepCC_TRUE@    if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -MT libgadu_la-obsolete.lo -MD -MP -MF "$(DEPDIR)/libgadu_la-obsolete.Tpo" -c -o libgadu_la-obsolete.lo `test -f 'obsolete.c' || echo '$(srcdir)/'`obsolete.c; \ 
    492349@am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/libgadu_la-obsolete.Tpo" "$(DEPDIR)/libgadu_la-obsolete.Plo"; else rm -f "$(DEPDIR)/libgadu_la-obsolete.Tpo"; exit 1; fi 
    493350@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='obsolete.c' object='libgadu_la-obsolete.lo' libtool=yes @AMDEPBACKSLASH@ 
    494 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/libgadu_la-obsolete.Plo' tmpdepfile='$(DEPDIR)/libgadu_la-obsolete.TPlo' @AMDEPBACKSLASH@ 
    495 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    496 @am__fastdepCC_FALSE@   $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-obsolete.lo `test -f 'obsolete.c' || echo '$(srcdir)/'`obsolete.c 
     351@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
     352@am__fastdepCC_FALSE@   $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgadu_la_CFLAGS) $(CFLAGS) -c -o libgadu_la-obsolete.lo `test -f 'obsolete.c' || echo '$(srcdir)/'`obsolete.c 
    497353 
    498354mostlyclean-libtool: 
     
    526382          $(AWK) '    { files[$$0] = 1; } \ 
    527383               END { for (i in files) print i; }'`; \ 
    528         test -z "$(ETAGS_ARGS)$$tags$$unique" \ 
    529           || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 
    530              $$tags $$unique 
     384        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 
     385          test -n "$$unique" || unique=$$empty_fix; \ 
     386          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 
     387            $$tags $$unique; \ 
     388        fi 
    531389ctags: CTAGS 
    532390CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \ 
     
    602460 
    603461distclean-generic: 
    604         -rm -f $(CONFIG_CLEAN_FILES) 
     462        -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 
    605463        -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) 
    606464 
  • trunk/libgadu/lib/common.c

    r592 r597  
    1 /* $Id: common.c,v 1.65 2005/01/21 16:25:21 wojtekka Exp $ */ 
     1/* $Id: common.c,v 1.70 2005/05/23 16:27:15 wojtekka Exp $ */ 
    22 
    33/* 
     
    9191char *gg_vsaprintf(const char *format, va_list ap) 
    9292{ 
    93         int size = 0; 
     93       int size = 0; 
    9494        const char *start; 
    9595        char *buf = NULL; 
     
    190190char *gg_get_line(char **ptr) 
    191191{ 
    192         char *foo, *res; 
    193  
    194         if (!ptr || !*ptr || !strcmp(*ptr, "")) 
    195                 return NULL; 
    196  
    197         res = *ptr; 
    198  
    199         if (!(foo = strchr(*ptr, '\n'))) 
    200                 *ptr += strlen(*ptr); 
    201         else { 
    202                 *ptr = foo + 1; 
    203                 *foo = 0; 
    204                 if (strlen(res) > 1 && res[strlen(res) - 1] == '\r') 
    205                         res[strlen(res) - 1] = 0; 
    206        
    207  
    208         return res; 
     192       char *foo, *res; 
     193 
     194       if (!ptr || !*ptr || !strcmp(*ptr, "")) 
     195               return NULL; 
     196 
     197       res = *ptr; 
     198 
     199       if (!(foo = strchr(*ptr, '\n'))) 
     200               *ptr += strlen(*ptr); 
     201       else { 
     202               *ptr = foo + 1; 
     203               *foo = 0; 
     204               if (strlen(res) > 1 && res[strlen(res) - 1] == '\r') 
     205                       res[strlen(res) - 1] = 0; 
     206       
     207 
     208       return res; 
    209209} 
    210210 
     
    224224int gg_connect(void *addr, int port, int async) 
    225225{ 
    226         int sock, one = 1
     226        int sock, one = 1, errno2
    227227        struct sockaddr_in sin; 
    228228        struct in_addr *a = addr; 
    229         struct sockaddr_in myaddr; 
     229       struct sockaddr_in myaddr; 
    230230 
    231231        gg_debug(GG_DEBUG_FUNCTION, "** gg_connect(%s, %d, %d);\n", inet_ntoa(*a), port, async); 
     
    236236        } 
    237237 
    238         memset(&myaddr, 0, sizeof(myaddr)); 
    239         myaddr.sin_family = AF_INET; 
    240  
    241         myaddr.sin_addr.s_addr = gg_local_ip; 
    242          
    243         if(bind(sock, (struct sockaddr *) &myaddr, sizeof(myaddr)) == -1) { 
    244                 gg_debug(GG_DEBUG_MISC, "// gg_connect() bind() failed (errno=%d, %s)\n", errno, strerror(errno)); 
    245                 return -1; 
    246        
     238       memset(&myaddr, 0, sizeof(myaddr)); 
     239       myaddr.sin_family = AF_INET; 
     240 
     241       myaddr.sin_addr.s_addr = gg_local_ip; 
     242 
     243       if (bind(sock, (struct sockaddr *) &myaddr, sizeof(myaddr)) == -1) { 
     244               gg_debug(GG_DEBUG_MISC, "// gg_connect() bind() failed (errno=%d, %s)\n", errno, strerror(errno)); 
     245               return -1; 
     246       
    247247 
    248248#ifdef ASSIGN_SOCKETS_TO_THREADS 
     
    257257#endif 
    258258                        gg_debug(GG_DEBUG_MISC, "// gg_connect() ioctl() failed (errno=%d, %s)\n", errno, strerror(errno)); 
     259                        errno2 = errno; 
    259260                        close(sock); 
     261                        errno = errno2; 
    260262                        return -1; 
    261263                } 
     
    269271                if (errno && (!async || errno != EINPROGRESS)) { 
    270272                        gg_debug(GG_DEBUG_MISC, "// gg_connect() connect() failed (errno=%d, %s)\n", errno, strerror(errno)); 
     273                        errno2 = errno; 
    271274                        close(sock); 
     275                        errno = errno2; 
    272276                        return -1; 
    273277                } 
     
    287291 *  - length - d�ugo��ufora 
    288292 * 
    289  * je�li trafi na b��d odczytu, zwraca NULL. inaczej zwraca buf. 
     293 * je�li trafi na b��d odczytu lub podano nieprawid�owe parametry, zwraca NULL. 
     294 * inaczej zwraca buf. 
    290295 */ 
    291296char *gg_read_line(int sock, char *buf, int length) 
    292297{ 
    293298        int ret; 
     299 
     300        if (!buf || length < 0) 
     301                return NULL; 
    294302 
    295303        for (; length > 1; buf++, length--) { 
     
    325333void gg_chomp(char *line) 
    326334{ 
    327         if (!line || strlen(line) < 1) 
     335        int len; 
     336         
     337        if (!line) 
    328338                return; 
    329339 
    330         if (line[strlen(line) - 1] == '\n') 
    331                 line[strlen(line) - 1] = 0; 
    332         if (line[strlen(line) - 1] == '\r') 
    333                 line[strlen(line) - 1] = 0; 
     340        len = strlen(line); 
     341         
     342        if (len > 0 && line[len - 1] == '\n') 
     343                line[--len] = 0; 
     344        if (len > 0 && line[len - 1] == '\r') 
     345                line[--len] = 0; 
    334346} 
    335347 
     
    348360        char *q, *buf, hex[] = "0123456789abcdef"; 
    349361        const char *p; 
    350         int size = 0; 
    351  
    352         if (!str && !(str = strdup(""))
    353                 return NULL
     362        unsigned int size = 0; 
     363 
     364        if (!str
     365                str = ""
    354366 
    355367        for (p = str; *p; p++, size++) { 
     
    400412 
    401413        for (j = 0; j < strlen(format); j++) { 
    402                 unsigned char *arg, buf[16]; 
     414                char *arg, buf[16]; 
    403415 
    404416                if (format[j] == 'u') { 
     
    406418                        arg = buf; 
    407419                } else { 
    408                         if (!(arg = va_arg(ap, unsigned char*))) 
     420                        if (!(arg = va_arg(ap, char*))) 
    409421                                arg = ""; 
    410422                }        
    411423 
    412424                i = 0; 
    413                 while ((c = (int) arg[i++]) != 0) { 
     425                while ((c = (unsigned char) arg[i++]) != 0) { 
    414426                        a = (c ^ b) + (c << 8); 
    415427                        b = (a >> 24) | (a << 8); 
     
    492504 
    493505        if (!(addr = malloc(sizeof(struct in_addr)))) { 
    494                 errno = ENOMEM; 
    495506                goto cleanup; 
    496507        } 
     
    552563                        if (close) { 
    553564                                /* socket zostaje usuniety */ 
    554                               closesocket(wsk->socket); 
    555                               *p_wsk = wsk->next; 
    556                               free(wsk); 
    557                               return 1; 
    558                         } else if (!socket) { 
     565                              closesocket(wsk->socket); 
     566                              *p_wsk = wsk->next; 
     567                              free(wsk); 
     568                              return 1; 
     569                       } else if (!socket) { 
    559570                                /* socket zostaje zwrocony */ 
    560571                                return wsk->socket; 
    561                         } else { 
     572                       } else { 
    562573                                /* socket zostaje ustawiony */ 
    563574                                wsk->socket = socket; 
    564575                                return socket; 
    565576                        } 
    566                } 
    567                  
    568                p_wsk = &(wsk->next); 
    569                wsk = wsk->next; 
    570         } 
    571          
    572         if (close && socket != -1) 
     577                } 
     578                p_wsk = &(wsk->next); 
     579                wsk = wsk->next; 
     580        } 
     581 
     582        if (close && socket != -1) 
    573583                closesocket(socket); 
    574         if (close || !socket) 
     584       if (close || !socket) 
    575585                return 0; 
    576586         
    577         /* Dodaje nowy element */ 
    578         wsk = malloc(sizeof(gg_win32_thread)); 
    579         wsk->id = thread_id; 
    580         wsk->socket = socket; 
    581         wsk->next = 0; 
    582         *p_wsk = wsk; 
    583          
    584         return socket; 
     587       /* Dodaje nowy element */ 
     588       wsk = malloc(sizeof(gg_win32_thread)); 
     589       wsk->id = thread_id; 
     590       wsk->socket = socket; 
     591       wsk->next = 0; 
     592       *p_wsk = wsk; 
     593 
     594       return socket; 
    585595} 
    586596 
     
    601611{ 
    602612        char *out, *res; 
    603         int i = 0, j = 0, k = 0, len = strlen(buf); 
     613        unsigned int i = 0, j = 0, k = 0, len = strlen(buf); 
    604614         
    605615        res = out = malloc((len / 3 + 1) * 4 + 2); 
     
    658668        char *res, *save, *foo, val; 
    659669        const char *end; 
    660         int index = 0; 
     670        unsigned int index = 0; 
    661671 
    662672        if (!buf) 
     
    752762{ 
    753763        uint32_t h = 1; 
    754         int i, j; 
     764        unsigned int i, j; 
    755765 
    756766        memset(gg_crc32_table, 0, sizeof(gg_crc32_table)); 
     
    781791        if (!gg_crc32_initialized) 
    782792                gg_crc32_make_table(); 
     793 
     794        if (!buf || len < 0) 
     795                return crc; 
    783796 
    784797        crc ^= 0xffffffffL; 
  • trunk/libgadu/lib/dcc.c

    r592 r597  
    1 /* $Id: dcc.c,v 1.66 2004/12/28 10:19:43 wojtekka Exp $ */ 
     1/* $Id: dcc.c,v 1.69 2005/05/22 08:41:54 wojtekka Exp $ */ 
    22 
    33/* 
     
    5353 *  - size - rozmiar danych 
    5454 */ 
    55 static void gg_dcc_debug_data(const char *prefix, int fd, const void *buf, int size) 
    56 { 
    57         int i; 
     55static void gg_dcc_debug_data(const char *prefix, int fd, const void *buf, unsigned int size) 
     56{ 
     57        unsigned int i; 
    5858         
    5959        gg_debug(GG_DEBUG_MISC, "++ gg_dcc %s (fd=%d,len=%d)", prefix, fd, size); 
     
    388388        struct gg_dcc *c; 
    389389        struct sockaddr_in sin; 
    390         int sock, bound = 0
     390        int sock, bound = 0, errno2
    391391         
    392392        gg_debug(GG_DEBUG_FUNCTION, "** gg_create_dcc_socket(%d, %d);\n", uin, port); 
     
    425425        if (listen(sock, 10)) { 
    426426                gg_debug(GG_DEBUG_MISC, "// gg_create_dcc_socket() unable to listen (%s)\n", strerror(errno)); 
     427                errno2 = errno; 
    427428                close(sock); 
     429                errno = errno2; 
    428430                return NULL; 
    429431        } 
     
    473475        if (!d || !buf || length < 0 || d->type != GG_SESSION_DCC_VOICE) { 
    474476                gg_debug(GG_DEBUG_MISC, "// gg_dcc_voice_send() invalid argument\n"); 
     477                errno = EINVAL; 
    475478                return -1; 
    476479        } 
     
    544547        int foo; 
    545548 
    546         gg_debug(GG_DEBUG_FUNCTION, "** gg_dcc_watch_fd(%p);\n", h); 
     549       gg_debug(GG_DEBUG_FUNCTION, "** gg_dcc_watch_fd(%p);\n", h); 
    547550         
    548551        if (!h || (h->type != GG_SESSION_DCC && h->type != GG_SESSION_DCC_SOCKET && h->type != GG_SESSION_DCC_SEND && h->type != GG_SESSION_DCC_GET && h->type != GG_SESSION_DCC_VOICE)) { 
     
    904907                                        h->state = GG_STATE_READING_VOICE_HEADER; 
    905908                                        h->voice_buf = NULL; 
    906                                  
    907909                                } 
    908910 
     
    11081110                                        return e; 
    11091111                                } 
    1110                                  
     1112 
    11111113                                lseek(h->file_fd, h->offset, SEEK_SET); 
    11121114 
     
    12661268void gg_dcc_free(struct gg_dcc *d) 
    12671269{ 
    1268         gg_debug(GG_DEBUG_FUNCTION, "** gg_dcc_free(%p);\n", d); 
     1270       gg_debug(GG_DEBUG_FUNCTION, "** gg_dcc_free(%p);\n", d); 
    12691271         
    12701272        if (!d) 
  • trunk/libgadu/lib/events.c