OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/rc_script.c versions 1.26 and 1.27
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/rc_script.c 1.26 -> 1.27

--- rc_script.c  2003/05/27 15:09:09     1.26
+++ rc_script.c  2003/05/28 13:31:55     1.27
@@ -215,11 +215,10 @@
             strncpy(szTemp, piStart, piEnd - piStart + 1);
             piSubtemp = strstr(szTemp, RC_DEF_PRG);
             if (piSubtemp) { /* Priority pattern found */
-                for (nTmp = (int)piSubtemp + strlen(RC_DEF_PRG);\
-                    isspace(nTmp); nTmp += sizeof (char)); /* Strip */
+                nTmp = (int)piSubtemp + strlen(RC_DEF_PRG);
                 nPri = strtol((char *)nTmp, &piSep, 10);
                 if ((char *)nTmp == piSep)  /* No priority number follows */
-                    sectionSetpri(pSec, RC_DEF_PRI); /* which is an error */
+                    RC_THROW(RC_ERR_USE);   /* which is an error */
                 else
                     sectionSetpri(pSec, nPri);  /* Found a priority value */
             }
@@ -229,8 +228,7 @@
             /* Handle the section userid   */
             piSubtemp = strstr(szTemp, RC_DEF_UIG);
             if (piSubtemp) { /* Userid pattern found */
-                for (nTmp = (int)piSubtemp + strlen(RC_DEF_UIG); \
-                    isspace(nTmp); nTmp += sizeof (char)); /* Strip */
+                nTmp = (int)piSubtemp + strlen(RC_DEF_UIG);
                 nUid = strtol((char *)nTmp, &piSep, 10);
                 if ((char *)nTmp == piSep)      /* No userid number follows */
                 {

CVSTrac 2.0.1