common: Remove define from configure.ac

This is still in configure.ac and was missed during the major
revert that happened here:

1c924f3d5a

This define doesn't need to be in configure.ac. It's not configurable
and doesn't apply broadly across Cockpit.
This commit is contained in:
Stef Walter 2019-05-21 07:47:07 +02:00 committed by Martin Pitt
parent 0c0b24d201
commit 5b931315ae
2 changed files with 4 additions and 4 deletions

View File

@ -561,8 +561,6 @@ AM_PATH_PYTHON([2.7])
AC_SUBST(PAM_LIBS)
AC_DEFINE([MAX_PACKET_SIZE], [65536], [Maximum size of packet messages])
AC_OUTPUT([
Makefile
doc/guide/version

View File

@ -60,6 +60,8 @@
* when its output queue is too large
*/
#define DEF_PACKET_SIZE (64UL * 1024UL)
enum {
PROP_0,
PROP_NAME,
@ -310,9 +312,9 @@ dispatch_input (gint fd,
*/
if (cond != G_IO_HUP)
{
g_byte_array_set_size (self->priv->in_buffer, len + MAX_PACKET_SIZE);
g_byte_array_set_size (self->priv->in_buffer, len + DEF_PACKET_SIZE);
g_debug ("%s: reading input %x", self->priv->name, cond);
ret = read (self->priv->in_fd, self->priv->in_buffer->data + len, MAX_PACKET_SIZE);
ret = read (self->priv->in_fd, self->priv->in_buffer->data + len, DEF_PACKET_SIZE);
errn = errno;
if (ret < 0)