[1874] in Moira Commits
/svn/moira r4016 - trunk/moira/server
daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Wed Aug 25 22:49:42 2010
Date: Wed, 25 Aug 2010 22:49:36 -0400
From: Garry Zacheiss <zacheiss@MIT.EDU>
Message-Id: <201008260249.o7Q2naw0007552@drugstore.mit.edu>
To: moira-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: zacheiss
Date: 2010-08-25 22:49:36 -0400 (Wed, 25 Aug 2010)
New Revision: 4016
Modified:
trunk/moira/server/qaccess.pc
Log:
Cast correctly.
Modified: trunk/moira/server/qaccess.pc
===================================================================
--- trunk/moira/server/qaccess.pc 2010-08-24 15:51:54 UTC (rev 4015)
+++ trunk/moira/server/qaccess.pc 2010-08-26 02:49:36 UTC (rev 4016)
@@ -101,7 +101,7 @@
if (q->version >= 12)
{
if (strcmp(argv[16], strtrim(sponsor_type)) ||
- (sponsor_id != atoi(argv[17])) ||
+ (sponsor_id != *(int *)argv[17]) ||
strcmp(argv[18], strtrim(expiration)))
return MR_PERM;
}