summaryrefslogtreecommitdiff
path: root/src/geo.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-06-29 12:07:18 +0200
committerantirez <antirez@gmail.com>2015-06-29 12:07:18 +0200
commita12192f5ff33298eb7082cc3f6e2de17957e7d26 (patch)
tree532bd70363b409212def7b35c71f9a5906c8264f /src/geo.c
parentaae0a1f9cce0ced9e6aa2e76977d6db72f6b4edc (diff)
downloadredis-a12192f5ff33298eb7082cc3f6e2de17957e7d26.tar.gz
Geo: command function names converted to lowercase, as elsewhere.
In Redis MULTIWORDCOMMANDNAME are mapped to functions where the command name is all lowercase: multiwordcommandnameCommand().
Diffstat (limited to 'src/geo.c')
-rw-r--r--src/geo.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/geo.c b/src/geo.c
index 18b0efac1..2869550ad 100644
--- a/src/geo.c
+++ b/src/geo.c
@@ -349,7 +349,7 @@ static int sort_gp_desc(const void *a, const void *b) {
* ==================================================================== */
/* GEOADD key long lat name [long2 lat2 name2 ... longN latN nameN] */
-void geoAddCommand(redisClient *c) {
+void geoaddCommand(redisClient *c) {
/* Check arguments number for sanity. */
if ((c->argc - 2) % 3 != 0) {
/* Need an odd number of arguments if we got this far... */
@@ -405,7 +405,7 @@ void geoAddCommand(redisClient *c) {
/* GEORADIUS key x y radius unit [WITHDIST] [WITHHASH] [WITHCOORD] [ASC|DESC]
* [COUNT count]
* GEORADIUSBYMEMBER key member radius unit ... options ... */
-static void geoRadiusGeneric(redisClient *c, int type) {
+static void georadiusGeneric(redisClient *c, int type) {
robj *key = c->argv[1];
/* Look up the requested zset */
@@ -555,17 +555,17 @@ static void geoRadiusGeneric(redisClient *c, int type) {
}
/* GEORADIUS wrapper function. */
-void geoRadiusCommand(redisClient *c) {
- geoRadiusGeneric(c, RADIUS_COORDS);
+void georadiusCommand(redisClient *c) {
+ georadiusGeneric(c, RADIUS_COORDS);
}
/* GEORADIUSBYMEMBER wrapper function. */
-void geoRadiusByMemberCommand(redisClient *c) {
- geoRadiusGeneric(c, RADIUS_MEMBER);
+void georadiusByMemberCommand(redisClient *c) {
+ georadiusGeneric(c, RADIUS_MEMBER);
}
/* GEODECODE long lat */
-void geoDecodeCommand(redisClient *c) {
+void geodecodeCommand(redisClient *c) {
GeoHashBits geohash;
if (getLongLongFromObjectOrReply(c, c->argv[1], (long long *)&geohash.bits,
NULL) != REDIS_OK)
@@ -598,7 +598,7 @@ void geoDecodeCommand(redisClient *c) {
}
/* GEOENCODE long lat [radius unit] */
-void geoEncodeCommand(redisClient *c) {
+void geoencodeCommand(redisClient *c) {
double radius_meters = 0;
if (c->argc == 5) {
if ((radius_meters = extractDistanceOrReply(c, c->argv + 3, NULL)) < 0)
@@ -659,7 +659,7 @@ void geoEncodeCommand(redisClient *c) {
*
* Returns an array with an 11 characters geohash representation of the
* position of the specified elements. */
-void geoHashCommand(redisClient *c) {
+void geohashCommand(redisClient *c) {
char *geoalphabet= "0123456789bcdefghjkmnpqrstuvwxyz";
int j;