Skip to content

Commit

Permalink
minor touch-up readability edits
Browse files Browse the repository at this point in the history
  • Loading branch information
nsardo authored Apr 26, 2017
1 parent ce06733 commit e75c767
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/com/jsniff/Sniff.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Sniff {
* the ten threads, one sub-range per thread.
*/
static int[][] createSubRanges ( int b, int e ) {
int[][] sub_ranges = new int[10][2];
int[][] sub_ranges = new int[ 10 ][ 2 ];
int beg = b;
int end = e;
final int range = ( end - beg ) / 10;
Expand Down Expand Up @@ -64,7 +64,7 @@ static void doTCP( int[][] sr, String h ) {
catch ( InterruptedException e ) {}
}
if ( tcparr.size() <= 0 ) {
System.out.println("No TCP Ports were found");
System.out.println( "No TCP Ports were found" );
} else {
Collections.sort(tcparr);
for( int i = 0; i < tcparr.size(); i++)
Expand Down Expand Up @@ -112,10 +112,10 @@ public static void main( String[] args ) {
}
if ( Integer.parseInt( args[ 3 ] ) > 65535 ) {
System.out.println( "\nPlease enter an ending port from 1 to 65535\n" );
System.exit(1);
System.exit( 1 );
}

String ip = args[1];
String ip = args[ 1 ];
int beg = Integer.parseInt( args[ 2 ] );
int end = Integer.parseInt( args[ 3 ] );

Expand Down

0 comments on commit e75c767

Please sign in to comment.