[patch] fixing compilation warning under freebsd
Andrey Slusar <[email protected]>
| Newsgroups | gmane.network.sn |
|---|---|
| Organization | Santinel |
| Message-ID | <[email protected]> |
Hello. In freebsd ALIGN already defined in system headers. Attached patch is fixing this. --anray
patch-newsgroup.c
(application/octet-stream, 499 B)
--- newsgroup.c.old Thu Jul 8 15:00:13 2004
+++ newsgroup.c Thu Jul 8 15:00:56 2004
@@ -58,7 +58,7 @@
static int avail = 0;
static int nr = 0;
-#define ALIGN sizeof(char *)
+#define SN_ALIGN sizeof(char *)
static int add (int ident, char *group, int len)
{
@@ -68,8 +68,8 @@
unsigned h;
len++;
- want = len + sizeof (struct ng) + ALIGN;
- want -= (len % ALIGN);
+ want = len + sizeof (struct ng) + SN_ALIGN;
+ want -= (len % SN_ALIGN);
len--;
if (avail < want)