comparison src/sslconn.c @ 6735:b0913ab92893

[gaim-migrate @ 7267] This is some compile warning cleanup stuff. I tried compiling with CFLAGS="-ansi -ggdb -pedantic -Wall" It's fun. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 04 Sep 2003 03:50:22 +0000
parents 36897b9e009f
children 6c95f01aaf49
comparison
equal deleted inserted replaced
6734:bf77a7db61c2 6735:b0913ab92893
289 return NULL; 289 return NULL;
290 } 290 }
291 291
292 return (GaimSslConnection)ssl_data; 292 return (GaimSslConnection)ssl_data;
293 #else 293 #else
294 g_return_val_if_fail(gaim_ssl_is_supported(), -1); 294 return GINT_TO_POINTER(-1);
295 #endif 295 #endif
296 } 296 }
297 297
298 void 298 void
299 gaim_ssl_close(GaimSslConnection *gsc) 299 gaim_ssl_close(GaimSslConnection *gsc)
343 } 343 }
344 344
345 void 345 void
346 gaim_ssl_uninit(void) 346 gaim_ssl_uninit(void)
347 { 347 {
348 #ifdef HAVE_NSS
348 if (!_nss_initialized) 349 if (!_nss_initialized)
349 return; 350 return;
350 351
351 #ifdef HAVE_NSS
352 PR_Cleanup(); 352 PR_Cleanup();
353 #endif
354 353
355 _nss_initialized = FALSE; 354 _nss_initialized = FALSE;
356 _nss_methods = NULL; 355 _nss_methods = NULL;
357 } 356 #endif
357 }