Skip to content

Commit

Permalink
Fix: cleanup tailing spaces of .c .h .cpp .java
Browse files Browse the repository at this point in the history
  • Loading branch information
zack-vii committed Apr 10, 2019
1 parent 43afe5f commit 58a8787
Show file tree
Hide file tree
Showing 659 changed files with 10,615 additions and 10,630 deletions.
6 changes: 3 additions & 3 deletions actions/actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*------------------------------------------------------------------------------
Name: ACTIONS
Name: ACTIONS
Type: C function
Author: TOM FREDIAN
Date: 25-FEB-1993
Purpose: Action Modification program
Purpose: Action Modification program
------------------------------------------------------------------------------
Call sequence:
Call sequence:
MCR ACTIONS -TREE treename
Expand Down
4 changes: 2 additions & 2 deletions camshr/KsM.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down Expand Up @@ -69,7 +69,7 @@ static int KsMultiIo(CamKey Key, // module info
if (MSGLVL(FUNCTION_NAME))
printf("%s()\n", KM_ROUTINE_NAME);

// sprintf(dev_name, "GK%c%d", Key.scsi_port, Key.scsi_address);
// sprintf(dev_name, "GK%c%d", Key.scsi_port, Key.scsi_address);
sprintf(dev_name, "GK%c%2d%2.2d", Key.scsi_port, Key.scsi_address, Key.crate);

if ((scsiDevice = get_scsi_device_number(dev_name, &enhanced, &online)) < 0) {
Expand Down
4 changes: 2 additions & 2 deletions camshr/KsS.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down Expand Up @@ -57,7 +57,7 @@ static int KsSingleIo(CamKey Key, BYTE A, BYTE F, BYTE * Data, BYTE Mem, Transla
printf("%s()\n", KS_ROUTINE_NAME);

// find the scsi device number (ie '/dev/sg#')
// sprintf(dev_name, "GK%c%d", Key.scsi_port, Key.scsi_address);
// sprintf(dev_name, "GK%c%d", Key.scsi_port, Key.scsi_address);
sprintf(dev_name, "GK%c%2d%2.2d", Key.scsi_port, Key.scsi_address, Key.crate);

if ((scsiDevice = get_scsi_device_number(dev_name, &enhanced, &online)) < 0) {
Expand Down
2 changes: 1 addition & 1 deletion camshr/KsT.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions camshr/QueryHighwayType.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down Expand Up @@ -63,7 +63,7 @@ static char *ShowType(int type);
//-------------------------------------------------------------------------
// Thu Feb 15 12:33:49 EST 2001
// Fri Mar 9 16:21:03 EST 2001
// Wed May 23 11:07:27 EDT 2001 -- now returns highway type,
// Wed May 23 11:07:27 EDT 2001 -- now returns highway type,
// and command status
// Thu May 31 16:48:32 EDT 2001 -- only have to check once, now
// Fri Jun 1 10:27:13 EDT 2001 -- 'cleaned-up' type logic
Expand Down
2 changes: 1 addition & 1 deletion camshr/ScsiSystemStatus.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions camshr/add_entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down Expand Up @@ -61,10 +61,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Thu Jan 11 10:41:13 EST 2001
// Tue Apr 3 16:28:20 EDT 2001
//-------------------------------------------------------------------------
// Add a cts or crate entry to the appropriate db. The new entry is inserted
// Add a cts or crate entry to the appropriate db. The new entry is inserted
// into the list alphabetically.
//
// input: db type,
// input: db type,
// pointer to a c-string containing a complete entry
// output: status
//-------------------------------------------------------------------------
Expand All @@ -80,7 +80,7 @@ int add_entry(int dbType, char *newEntry)
printf("add_entry()\n");

//----------------------------
// adding an entry
// adding an entry
//----------------------------
//-- 'critical section' start
//----------------------------
Expand Down
2 changes: 1 addition & 1 deletion camshr/bisearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
12 changes: 6 additions & 6 deletions camshr/cam_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down Expand Up @@ -299,7 +299,7 @@ EXPORT int CamXandQ(TranslatedIosb * iosb) // CAM$XANDQ_SCSI()
(iosb) ? "iosb" : "&LastIosb",
iosb,
(iosb) ? "iosb" : "&LastIosb", iosb_use->x, iosb_use->q, iosb_use->x && iosb_use->q);

//printf("CamXnQ(iosb) ::->> bytecount= %d\n", iosb->bytcnt); // [2002.12.13]
//printf("CamXnQ(iosb_use)::->> bytecount= %d\n", iosb_use->bytcnt); // [2002.12.13]
//printf("CamXnQ(LastIosb)::->> bytecount= %d\n", LastIosb.bytcnt); // [2002.12.13]
Expand Down Expand Up @@ -365,16 +365,16 @@ EXPORT int CamError(int xexp, int qexp, TranslatedIosb * iosb)
int xexp_use;
int qexp_use;
TranslatedIosb *iosb_use;

if (MSGLVL(DETAILS))
printf("CamError(): xexp:%d qexp:%d\n", xexp, qexp);

xexp_use = xexp ? xexp : 0;
qexp_use = qexp ? qexp : 0;
iosb_use = iosb ? iosb : &LastIosb;

iosb_use->err = !iosb_use->x && !iosb_use->q;

if (MSGLVL(DETAILS))
printf("CamError(): x:%d q:%d iosb->err %d\n", xexp_use, qexp_use, iosb_use->err);
return iosb_use->err;
Expand Down
2 changes: 1 addition & 1 deletion camshr/check_for_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion camshr/check_sema4.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion camshr/commit_entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions camshr/compare_str.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down Expand Up @@ -104,7 +104,7 @@ int compare_str(const void *key1, const void *key2)
}

//-------------------------------------------------------------------------
// same as 'strncmp()' but ignores case
// same as 'strncmp()' but ignores case
// (shamelessly copied from other mdsplus code)
//-------------------------------------------------------------------------
static int strncmp_nocase(const char *s, const char *t, int n)
Expand Down
2 changes: 1 addition & 1 deletion camshr/contract_db.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions camshr/copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down Expand Up @@ -64,8 +64,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//-------------------------------------------------------------------------
// Copy in_file's contents to out_file
//
// input: db type,
// pointers to inFile, outFile,
// input: db type,
// pointers to inFile, outFile,
// number of items to copy
// output: status
//-------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion camshr/crate.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// form of data in crate.db:
// GKB509:001:2:1:1
// ^^^^^^ ^^^ ^
// |||||| | ||| | | | \ online (1=online, 0=not)
// |||||| | ||| | | | \ online (1=online, 0=not)
// | ||| | | \ enhanced (1=enhanced, 0=not)
// GK|||| | | == constants
// B||| | | == scsi host adapter
Expand Down
2 changes: 1 addition & 1 deletion camshr/create_sema4.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion camshr/create_tmp_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion camshr/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion camshr/expand_db.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion camshr/get_crate_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion camshr/get_db_file_size.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion camshr/get_file_count.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion camshr/get_file_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions camshr/get_scsi_device_number.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand All @@ -51,7 +51,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Tue Sep 18 15:29:52 EDT 2001 -- removed file check; should be using memory
// mapped file
//-------------------------------------------------------------------------
// lookup a CAMAC device (serial highway) in crate.db
// lookup a CAMAC device (serial highway) in crate.db
// and return O/S specific device number, eg '/dev/sg#'
// returns '/dev/sg#' value; if non-existant, parse_crate_db() returns -1
//-------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion camshr/global.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion camshr/issort.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion camshr/lock_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// MIT / PSFC
// Cambridge, MA 02139 USA
//
// This is a port of the MDSplus system software from VMS to Linux,
// This is a port of the MDSplus system software from VMS to Linux,
// specifically:
// CAMAC subsystem, ie libCamShr.so and verbs.c for CTS.
//-------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit 58a8787

Please sign in to comment.