- fixed warnings, produced by Haiku version of gcc;

- space-based indentations replaced with tab-based ones;
 - a bit of cleanup;


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18784 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
imker
2006-09-08 19:44:19 +00:00
parent 9bb1a5cd57
commit 65482713f4
4 changed files with 583 additions and 553 deletions
@@ -1,6 +1,13 @@
/* /**
* Copyright (c) 2003-2005 by Siarzhuk Zharski <[email protected]> *
* Distributed under the terms of the BSD License. * TODO: description
*
* This file is a part of USB SCSI CAM for Haiku OS.
* May be used under terms of the MIT License
*
* Author(s):
* Siarzhuk Zharski <[email protected]>
*
* *
*/ */
#ifndef _DEVICE_INFO_H_ #ifndef _DEVICE_INFO_H_
@@ -55,3 +62,4 @@ typedef struct _usb_device_info{
} usb_device_info; } usb_device_info;
#endif /* _DEVICE_INFO_H_ */ #endif /* _DEVICE_INFO_H_ */
@@ -1,9 +1,15 @@
/* /**
* Copyright (c) 2003-2005 by Siarzhuk Zharski <[email protected]> *
* Distributed under the terms of the BSD License. * TODO: description
*
* This file is a part of USB SCSI CAM for Haiku OS.
* May be used under terms of the MIT License
*
* Author(s):
* Siarzhuk Zharski <[email protected]>
*
* *
*/ */
/** definitions for SCSI commands, structures etc. */ /** definitions for SCSI commands, structures etc. */
#ifndef _SCSI_COMMANDS_H_ #ifndef _SCSI_COMMANDS_H_
@@ -316,3 +322,4 @@ typedef struct _scsi_sense_data{
}scsi_sense_data; }scsi_sense_data;
#endif /*_SCSI_COMMANDS_H_*/ #endif /*_SCSI_COMMANDS_H_*/
+13 -5
View File
@@ -1,9 +1,15 @@
/* /**
* Copyright (c) 2003-2005 by Siarzhuk Zharski <[email protected]> *
* Distributed under the terms of the BSD License. * TODO: description
*
* This file is a part of USB SCSI CAM for Haiku OS.
* May be used under terms of the MIT License
*
* Author(s):
* Siarzhuk Zharski <[email protected]>
*
* *
*/ */
/** tracing support implementation */ /** tracing support implementation */
#include "usb_scsi.h" #include "usb_scsi.h"
@@ -79,6 +85,7 @@ static bool b_log_thname = false;
/** log result of READ_CAPACITY command */ /** log result of READ_CAPACITY command */
bool b_log_capacity = false; bool b_log_capacity = false;
/** /**
\fn: load_log_settings \fn: load_log_settings
\param sh: driver_settings handle \param sh: driver_settings handle
@@ -127,7 +134,7 @@ load_log_settings(void *sh)
called to [re]create private log file called to [re]create private log file
*/ */
void void
create_log() create_log(void)
{ {
int flags = O_WRONLY | O_CREAT | ((!b_log_append) ? O_TRUNC : 0); int flags = O_WRONLY | O_CREAT | ((!b_log_append) ? O_TRUNC : 0);
if(b_log_file){ if(b_log_file){
@@ -375,3 +382,4 @@ void usb_scsi_trace_SG(iovec *sg, int count)
} }
#endif /* BUILD_LOG_DAEMON */ #endif /* BUILD_LOG_DAEMON */
+12 -5
View File
@@ -1,9 +1,15 @@
/* /**
* Copyright (c) 2003-2005 by Siarzhuk Zharski <[email protected]> *
* Distributed under the terms of the BSD License. * TODO: description
*
* This file is a part of USB SCSI CAM for Haiku OS.
* May be used under terms of the MIT License
*
* Author(s):
* Siarzhuk Zharski <[email protected]>
*
* *
*/ */
/** tracing support definitions */ /** tracing support definitions */
#ifndef _USB_SCSI_TRACING_H_ #ifndef _USB_SCSI_TRACING_H_
@@ -14,7 +20,7 @@
#endif /*_SG_BUFFER_H_*/ #endif /*_SG_BUFFER_H_*/
void load_log_settings(void *sh); void load_log_settings(void *sh);
void create_log(); void create_log(void);
void usb_scsi_trace(bool b_force, const char *fmt, ...); void usb_scsi_trace(bool b_force, const char *fmt, ...);
/* non-switchable tracng functions */ /* non-switchable tracng functions */
@@ -94,3 +100,4 @@ extern bool b_log_capacity;
{ if(b_log_capacity) usb_scsi_trace_sgb(prefix, data); } { if(b_log_capacity) usb_scsi_trace_sgb(prefix, data); }
#endif /*_USB_SCSI_TRACING_H_*/ #endif /*_USB_SCSI_TRACING_H_*/