Changeset 597
- Timestamp:
- 07/22/05 09:16:23 (3 years ago)
- Files:
-
- trunk/libgadu/docs/protocol.html (modified) (10 diffs)
- trunk/libgadu/lib (modified) (1 prop)
- trunk/libgadu/lib/Makefile.in (modified) (11 diffs)
- trunk/libgadu/lib/common.c (modified) (18 diffs)
- trunk/libgadu/lib/dcc.c (modified) (9 diffs)
- trunk/libgadu/lib/events.c (modified) (30 diffs)
- trunk/libgadu/lib/http.c (modified) (13 diffs)
- trunk/libgadu/lib/libgadu.c (modified) (33 diffs)
- trunk/libgadu/lib/libgadu.h (modified) (14 diffs)
- trunk/libgadu/lib/libgadu.pc.in (modified) (1 diff)
- trunk/libgadu/lib/obsolete.c (modified) (2 diffs)
- trunk/libgadu/lib/pubdir.c (modified) (27 diffs)
- trunk/libgadu/lib/pubdir50.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libgadu/docs/protocol.html
r592 r597 112 112 Przy opisie struktur, za�o�ono, �e <tt>char</tt> ma rozmiar 1 bajtu, 113 113 <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�ych114 rozmiar typ�miennych i kolejno��ajt�Poza tym, wi�zo��ost�ych 115 115 obecnie kompilator�omy�lnie wyr�je zmienne do rozmiaru s�owa danej 116 116 architektury, wi�nale�y wy��czy�� funkcj�W przypadku gcc b�ie to 117 <tt>__attribute__ ((packed))</tt> zaraz za deklaracj� ka�dej struktury .a dla117 <tt>__attribute__ ((packed))</tt> zaraz za deklaracj� ka�dej struktury, a dla 118 118 Microsoft Visual C++ powinno pom�</p> 119 119 … … 263 263 264 264 <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) 266 266 { 267 267 unsigned int x, y, z; … … 294 294 <table class="tab" border="0" cellspacing="1" cellpadding="2" width="100%"> 295 295 <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> 296 299 <tr class="tabf"><td><tt>0x20</tt></td><td>6.0</td></tr> 297 300 <tr class="tabf"><td><tt>0x1e</tt></td><td>5.7 beta (build 121)</td></tr> … … 322 325 <div class="c"> 323 326 <pre>#define GG_HAS_AUDIO_MASK 0x40000000</pre> 327 </div> 328 329 <p> 330 Je�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> 324 334 </div> 325 335 … … 491 501 <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> 492 502 <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> 493 504 </table> 494 505 … … 650 661 <p> 651 662 Od 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��czenie663 atrybut�ekstu, jak pogrubienie czy kolory. Niezb�e jest do��czenie 653 664 nast�j�cej struktury: 654 665 </p> … … 739 750 int crc32; <i>/* suma kontrolna */</i> 740 751 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> 742 753 };</pre> 743 754 </div> … … 745 756 <p> 746 757 Je�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 prze raczaj�cych758 bajt�tre��brazka jest dzielona na kilka pakiet�ie przekraczaj�cych 748 759 1909 bajt�Pierwszy pakiet ma pole <tt>flag</tt> r� 0x05 i ma wype�nione 749 760 pole <tt>filename</tt>, a w kolejnych pole <tt>flag</tt> jest r� 0x06 750 761 i pole <tt>filename</tt> w og�nie wyst�je (nawet bajt zako�nia ci�gu 751 762 znak� 763 </p> 764 765 <p> 766 Je�li otrzymamy pakiet bez pola <tt>filename</tt> oraz <tt>image</tt>, oznacza 767 to, �e klient nie posiada ��danego obrazka. 752 768 </p> 753 769 … … 1769 1785 <li><b>Pawe� Piwowar</b> (alfapawel%go2.pl): format czasu.</li> 1770 1786 <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 statusu1787 <li><b>Rados�aw Nowak</b> (rano%ranosoft.net): uzupe�nienie statusu 1772 1788 opisowego, wersja 5.0.3.</li> 1773 1789 <li><b>Walerian Soko�owski</b>: pierwsza wersja opisu protoko�u … … 1779 1795 1780 1796 <font color="silver"> 1781 $Id: protocol.html,v 1.6 0 2004/12/21 21:42:43 wojtekkaExp $1797 $Id: protocol.html,v 1.68 2005/07/17 12:46:06 szalik Exp $ 1782 1798 </font> 1783 1799 trunk/libgadu/lib
- Property svn:ignore set to
libgadu-config.h
.libs
libgadu.pc
.deps
Makefile
- Property svn:ignore set to
trunk/libgadu/lib/Makefile.in
r592 r597 1 # Makefile.in generated by automake 1. 8.2from Makefile.am.1 # Makefile.in generated by automake 1.9.4 from Makefile.am. 2 2 # @configure_input@ 3 3 … … 40 40 PRE_UNINSTALL = : 41 41 POST_UNINSTALL = : 42 build_triplet = @build@ 42 43 host_triplet = @host@ 43 44 subdir = lib … … 50 51 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 51 52 $(ACLOCAL_M4) 52 mkinstalldirs = $( SHELL) $(top_srcdir)/../mkinstalldirs53 mkinstalldirs = $(install_sh) -d 53 54 CONFIG_HEADER = $(top_builddir)/config.h 54 55 CONFIG_CLEAN_FILES = libgadu.pc … … 61 62 libgadu_la_OBJECTS = $(am_libgadu_la_OBJECTS) 62 63 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) 63 depcomp = $(SHELL) $(top_srcdir)/ ../depcomp64 depcomp = $(SHELL) $(top_srcdir)/depcomp 64 65 am__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.Plo73 66 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 74 67 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 75 LTCOMPILE = $(LIBTOOL) -- mode=compile $(CC) $(DEFS) \68 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ 76 69 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 77 70 $(AM_CFLAGS) $(CFLAGS) 78 71 CCLD = $(CC) 79 LINK = $(LIBTOOL) -- mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \72 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 80 73 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 81 74 SOURCES = $(libgadu_la_SOURCES) … … 164 157 am__leading_dot = @am__leading_dot@ 165 158 am__quote = @am__quote@ 159 am__tar = @am__tar@ 160 am__untar = @am__untar@ 166 161 bindir = @bindir@ 167 162 build = @build@ … … 258 253 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ 259 254 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 260 test "$$dir" = "$$p" &&dir=.; \255 test "$$dir" != "$$p" || dir=.; \ 261 256 echo "rm -f \"$${dir}/so_locations\""; \ 262 257 rm -f "$${dir}/so_locations"; \ … … 284 279 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 285 280 @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@ 288 282 @am__fastdepCC_FALSE@ $(COMPILE) -c $< 289 283 … … 292 286 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 293 287 @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@ 296 289 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` 297 290 … … 300 293 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 301 294 @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@ 304 296 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< 305 297 306 libgadu_la-common.o: common.c307 @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; fi309 @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.c313 314 libgadu_la-common.obj: common.c315 @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; fi317 @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 322 298 libgadu_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; \ 324 300 @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 325 301 @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 345 304 346 305 libgadu_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; \ 348 307 @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 349 308 @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 369 311 370 312 libgadu_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; \ 372 314 @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 373 315 @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 393 318 394 319 libgadu_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; \ 396 321 @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 397 322 @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 417 325 418 326 libgadu_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; \ 420 328 @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 421 329 @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 441 332 442 333 libgadu_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; \ 444 335 @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 445 336 @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 465 339 466 340 libgadu_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; \ 468 342 @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 469 343 @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 489 346 490 347 libgadu_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; \ 492 349 @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 493 350 @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 497 353 498 354 mostlyclean-libtool: … … 526 382 $(AWK) ' { files[$$0] = 1; } \ 527 383 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 531 389 ctags: CTAGS 532 390 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ … … 602 460 603 461 distclean-generic: 604 - rm -f $(CONFIG_CLEAN_FILES)462 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 605 463 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) 606 464 trunk/libgadu/lib/common.c
r592 r597 1 /* $Id: common.c,v 1. 65 2005/01/21 16:25:21wojtekka Exp $ */1 /* $Id: common.c,v 1.70 2005/05/23 16:27:15 wojtekka Exp $ */ 2 2 3 3 /* … … 91 91 char *gg_vsaprintf(const char *format, va_list ap) 92 92 { 93 int size = 0;93 int size = 0; 94 94 const char *start; 95 95 char *buf = NULL; … … 190 190 char *gg_get_line(char **ptr) 191 191 { 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; 209 209 } 210 210 … … 224 224 int gg_connect(void *addr, int port, int async) 225 225 { 226 int sock, one = 1 ;226 int sock, one = 1, errno2; 227 227 struct sockaddr_in sin; 228 228 struct in_addr *a = addr; 229 struct sockaddr_in myaddr;229 struct sockaddr_in myaddr; 230 230 231 231 gg_debug(GG_DEBUG_FUNCTION, "** gg_connect(%s, %d, %d);\n", inet_ntoa(*a), port, async); … … 236 236 } 237 237 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 } 247 247 248 248 #ifdef ASSIGN_SOCKETS_TO_THREADS … … 257 257 #endif 258 258 gg_debug(GG_DEBUG_MISC, "// gg_connect() ioctl() failed (errno=%d, %s)\n", errno, strerror(errno)); 259 errno2 = errno; 259 260 close(sock); 261 errno = errno2; 260 262 return -1; 261 263 } … … 269 271 if (errno && (!async || errno != EINPROGRESS)) { 270 272 gg_debug(GG_DEBUG_MISC, "// gg_connect() connect() failed (errno=%d, %s)\n", errno, strerror(errno)); 273 errno2 = errno; 271 274 close(sock); 275 errno = errno2; 272 276 return -1; 273 277 } … … 287 291 * - length - d�ugo��ufora 288 292 * 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. 290 295 */ 291 296 char *gg_read_line(int sock, char *buf, int length) 292 297 { 293 298 int ret; 299 300 if (!buf || length < 0) 301 return NULL; 294 302 295 303 for (; length > 1; buf++, length--) { … … 325 333 void gg_chomp(char *line) 326 334 { 327 if (!line || strlen(line) < 1) 335 int len; 336 337 if (!line) 328 338 return; 329 339 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; 334 346 } 335 347 … … 348 360 char *q, *buf, hex[] = "0123456789abcdef"; 349 361 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 = ""; 354 366 355 367 for (p = str; *p; p++, size++) { … … 400 412 401 413 for (j = 0; j < strlen(format); j++) { 402 unsignedchar *arg, buf[16];414 char *arg, buf[16]; 403 415 404 416 if (format[j] == 'u') { … … 406 418 arg = buf; 407 419 } else { 408 if (!(arg = va_arg(ap, unsignedchar*)))420 if (!(arg = va_arg(ap, char*))) 409 421 arg = ""; 410 422 } 411 423 412 424 i = 0; 413 while ((c = ( int) arg[i++]) != 0) {425 while ((c = (unsigned char) arg[i++]) != 0) { 414 426 a = (c ^ b) + (c << 8); 415 427 b = (a >> 24) | (a << 8); … … 492 504 493 505 if (!(addr = malloc(sizeof(struct in_addr)))) { 494 errno = ENOMEM;495 506 goto cleanup; 496 507 } … … 552 563 if (close) { 553 564 /* 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) { 559 570 /* socket zostaje zwrocony */ 560 571 return wsk->socket; 561 } else {572 } else { 562 573 /* socket zostaje ustawiony */ 563 574 wsk->socket = socket; 564 575 return socket; 565 576 } 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) 573 583 closesocket(socket); 574 if (close || !socket)584 if (close || !socket) 575 585 return 0; 576 586 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; 585 595 } 586 596 … … 601 611 { 602 612 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); 604 614 605 615 res = out = malloc((len / 3 + 1) * 4 + 2); … … 658 668 char *res, *save, *foo, val; 659 669 const char *end; 660 int index = 0;670 unsigned int index = 0; 661 671 662 672 if (!buf) … … 752 762 { 753 763 uint32_t h = 1; 754 int i, j;764 unsigned int i, j; 755 765 756 766 memset(gg_crc32_table, 0, sizeof(gg_crc32_table)); … … 781 791 if (!gg_crc32_initialized) 782 792 gg_crc32_make_table(); 793 794 if (!buf || len < 0) 795 return crc; 783 796 784 797 crc ^= 0xffffffffL; trunk/libgadu/lib/dcc.c
r592 r597 1 /* $Id: dcc.c,v 1.6 6 2004/12/28 10:19:43wojtekka Exp $ */1 /* $Id: dcc.c,v 1.69 2005/05/22 08:41:54 wojtekka Exp $ */ 2 2 3 3 /* … … 53 53 * - size - rozmiar danych 54 54 */ 55 static void gg_dcc_debug_data(const char *prefix, int fd, const void *buf, int size)56 { 57 int i;55 static void gg_dcc_debug_data(const char *prefix, int fd, const void *buf, unsigned int size) 56 { 57 unsigned int i; 58 58 59 59 gg_debug(GG_DEBUG_MISC, "++ gg_dcc %s (fd=%d,len=%d)", prefix, fd, size); … … 388 388 struct gg_dcc *c; 389 389 struct sockaddr_in sin; 390 int sock, bound = 0 ;390 int sock, bound = 0, errno2; 391 391 392 392 gg_debug(GG_DEBUG_FUNCTION, "** gg_create_dcc_socket(%d, %d);\n", uin, port); … … 425 425 if (listen(sock, 10)) { 426 426 gg_debug(GG_DEBUG_MISC, "// gg_create_dcc_socket() unable to listen (%s)\n", strerror(errno)); 427 errno2 = errno; 427 428 close(sock); 429 errno = errno2; 428 430 return NULL; 429 431 } … … 473 475 if (!d || !buf || length < 0 || d->type != GG_SESSION_DCC_VOICE) { 474 476 gg_debug(GG_DEBUG_MISC, "// gg_dcc_voice_send() invalid argument\n"); 477 errno = EINVAL; 475 478 return -1; 476 479 } … … 544 547 int foo; 545 548 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); 547 550 548 551 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)) { … … 904 907 h->state = GG_STATE_READING_VOICE_HEADER; 905 908 h->voice_buf = NULL; 906 907 909 } 908 910 … … 1108 1110 return e; 1109 1111 } 1110 1112 1111 1113 lseek(h->file_fd, h->offset, SEEK_SET); 1112 1114 … … 1266 1268 void gg_dcc_free(struct gg_dcc *d) 1267 1269 { 1268 gg_debug(GG_DEBUG_FUNCTION, "** gg_dcc_free(%p);\n", d);1270 gg_debug(GG_DEBUG_FUNCTION, "** gg_dcc_free(%p);\n", d); 1269 1271 1270 1272 if (!d) trunk/libgadu/lib/events.c
