Skip to content

Commit

Permalink
Remove trailing comma in redisConnectionType enum
Browse files Browse the repository at this point in the history
Remove trailing comma in last value of `redisConnectionType` enum. This causes a compiler warning on Solaris compilers. I'd like to build this on Solaris with `-Werror`. However, due to the trailing comma, I cannot do that.

This PR removes the trailing comma, which should prevent it causing compiler warnings on any architecture.
  • Loading branch information
DonaldWhyte authored Oct 25, 2016
1 parent 5f98e1d commit 41b07da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hiredis.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void redisFreeSdsCommand(sds cmd);

enum redisConnectionType {
REDIS_CONN_TCP,
REDIS_CONN_UNIX,
REDIS_CONN_UNIX
};

/* Context for a connection to Redis */
Expand Down

0 comments on commit 41b07da

Please sign in to comment.