upgrade to memcached-1.4.7, lint fixes
This commit is contained in:
parent
1a891b5893
commit
8ca78cb0ae
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
memcached-1.4.5.tar.gz
|
||||
/memcached-1.4.6.tar.gz
|
||||
/memcached-1.4.7.tar.gz
|
||||
|
@ -1,30 +0,0 @@
|
||||
--- memcached-1.4.5/items.c.warnings
|
||||
+++ memcached-1.4.5/items.c
|
||||
@@ -449,10 +449,8 @@ void do_item_stats_sizes(ADD_STAT add_st
|
||||
/* write the buffer */
|
||||
for (i = 0; i < num_buckets; i++) {
|
||||
if (histogram[i] != 0) {
|
||||
- char key[8];
|
||||
- int klen = 0;
|
||||
- klen = snprintf(key, sizeof(key), "%d", i * 32);
|
||||
- assert(klen < sizeof(key));
|
||||
+ char key[12];
|
||||
+ snprintf(key, sizeof(key), "%d", i * 32);
|
||||
APPEND_STAT(key, "%u", histogram[i]);
|
||||
}
|
||||
}
|
||||
--- memcached-1.4.5/memcached.c.warnings
|
||||
+++ memcached-1.4.5/memcached.c
|
||||
@@ -4662,9 +4662,9 @@ int main (int argc, char **argv) {
|
||||
|
||||
/* create the UDP listening socket and bind it */
|
||||
errno = 0;
|
||||
- if (settings.udpport && server_socket(settings.udpport, udp_transport,
|
||||
- portnumber_file)) {
|
||||
- vperror("failed to listen on UDP port %d", settings.udpport);
|
||||
+ if (udp_port && server_socket(udp_port, udp_transport,
|
||||
+ portnumber_file)) {
|
||||
+ vperror("failed to listen on UDP port %d", udp_port);
|
||||
exit(EX_OSERR);
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
%define groupname memcached
|
||||
|
||||
Name: memcached
|
||||
Version: 1.4.6
|
||||
Version: 1.4.7
|
||||
Release: 1%{?dist}
|
||||
Epoch: 0
|
||||
Summary: High Performance, Distributed Memory Object Cache
|
||||
@ -25,7 +25,6 @@ BuildRequires: libevent-devel
|
||||
BuildRequires: perl(Test::More)
|
||||
|
||||
Requires: initscripts
|
||||
Requires: libevent
|
||||
Requires(pre): shadow-utils
|
||||
Requires(post): /sbin/chkconfig
|
||||
Requires(preun): /sbin/chkconfig, /sbin/service
|
||||
@ -45,8 +44,8 @@ Group: Development/Libraries
|
||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Install memcached-devel if you are developing C/C++ applications that require access to the
|
||||
memcached binary include files.
|
||||
Install memcached-devel if you are developing C/C++ applications that require
|
||||
access to the memcached binary include files.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
@ -144,6 +143,10 @@ exit 0
|
||||
%{_includedir}/memcached/*
|
||||
|
||||
%changelog
|
||||
* Tue Aug 16 2011 Paul Lindner <lindner@inuus.com> - 0:1.4.7-1
|
||||
- Upgrade to memcached 1.4.7 (http://code.google.com/p/memcached/wiki/ReleaseNotes147)
|
||||
- Fix some rpmlint errors/warnings.
|
||||
|
||||
* Tue Aug 2 2011 Paul Lindner <lindner@inuus.com> - 0:1.4.6-1
|
||||
- Upgrade to memcached-1.4.6
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user