Skip to content

Commit

Permalink
Fix warning: [cast] redundant cast to int
Browse files Browse the repository at this point in the history
  • Loading branch information
bostick committed Aug 18, 2023
1 parent 624038d commit 18a2c38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ host-jar()
cp -f $CACHE_DIR/lib/libzt.* $JAVA_JAR_DIR
cd $JAVA_JAR_DIR
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
javac -Xlint:deprecation com/zerotier/sockets/*.java
javac -Xlint:all com/zerotier/sockets/*.java

jar cf libzt-$PKG_VERSION.jar $SHARED_LIB_NAME com/zerotier/sockets/*.class
rm -rf com $SHARED_LIB_NAME
Expand Down
2 changes: 1 addition & 1 deletion src/bindings/java/com/zerotier/sockets/ZeroTierNative.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public class ZeroTierNative {
public static int ZTS_SO_DONTROUTE = 0x00000010; // NOT YET SUPPORTED
public static int ZTS_SO_USELOOPBACK = 0x00000040; // NOT YET SUPPORTED
public static int ZTS_SO_LINGER = 0x00000080;
public static int ZTS_SO_DONTLINGER = ((int)(~ZTS_SO_LINGER));
public static int ZTS_SO_DONTLINGER = (~ZTS_SO_LINGER);
public static int ZTS_SO_OOBINLINE = 0x00000100; // NOT YET SUPPORTED
public static int ZTS_SO_REUSEPORT = 0x00000200; // NOT YET SUPPORTED
public static int ZTS_SO_SNDBUF = 0x00001001; // NOT YET SUPPORTED
Expand Down

0 comments on commit 18a2c38

Please sign in to comment.