aboutsummaryrefslogtreecommitdiff
path: root/lib/amigaos.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-02-27 08:53:10 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-02-27 08:53:10 +0000
commit794b4da840852ef7ad6c25ac3f6b1e2f8284dbc3 (patch)
treeb00ad5a2e01f6ff19692213ca7ea31a7e34b71bf /lib/amigaos.c
parente9ea3ba4a2b23c803379f4445ffe1e288a971117 (diff)
Indentation fixes, untabify and related whitespace-cleanup. No code changed.
Diffstat (limited to 'lib/amigaos.c')
-rw-r--r--lib/amigaos.c49
1 files changed, 23 insertions, 26 deletions
diff --git a/lib/amigaos.c b/lib/amigaos.c
index 64696e848..c7438a4eb 100644
--- a/lib/amigaos.c
+++ b/lib/amigaos.c
@@ -33,42 +33,39 @@ extern int errno, h_errno;
#include <stabs.h>
void __request(const char *msg);
#else
-# define __request( msg ) Printf( msg "\n\a")
+# define __request( msg ) Printf( msg "\n\a")
#endif
void amiga_cleanup()
{
- if(SocketBase) {
- CloseLibrary(SocketBase);
- SocketBase = NULL;
- }
+ if(SocketBase) {
+ CloseLibrary(SocketBase);
+ SocketBase = NULL;
+ }
}
BOOL amiga_init()
{
- if(!SocketBase)
- SocketBase = OpenLibrary("bsdsocket.library", 4);
-
- if(!SocketBase) {
- __request("No TCP/IP Stack running!");
- return FALSE;
- }
-
- if(SocketBaseTags(
- SBTM_SETVAL(SBTC_ERRNOPTR(sizeof(errno))), (ULONG) &errno,
-// SBTM_SETVAL(SBTC_HERRNOLONGPTR), (ULONG) &h_errno,
- SBTM_SETVAL(SBTC_LOGTAGPTR), (ULONG) "cURL",
- TAG_DONE)) {
-
- __request("SocketBaseTags ERROR");
- return FALSE;
- }
-
+ if(!SocketBase)
+ SocketBase = OpenLibrary("bsdsocket.library", 4);
+
+ if(!SocketBase) {
+ __request("No TCP/IP Stack running!");
+ return FALSE;
+ }
+
+ if(SocketBaseTags(SBTM_SETVAL(SBTC_ERRNOPTR(sizeof(errno))), (ULONG) &errno,
+ SBTM_SETVAL(SBTC_LOGTAGPTR), (ULONG) "cURL",
+ TAG_DONE)) {
+ __request("SocketBaseTags ERROR");
+ return FALSE;
+ }
+
#ifndef __libnix__
- atexit(amiga_cleanup);
+ atexit(amiga_cleanup);
#endif
-
- return TRUE;
+
+ return TRUE;
}
#ifdef __libnix__