OSSP CVS Repository

ossp - Check-in [2923]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2923
Date: 2002-Nov-28 18:44:14 (local)
2002-Nov-28 17:44:14 (UTC)
User:mlelstv
Branch:
Comment: more labelling test

PR: Submitted by: Reviewed by: Approved by: Obtained from:

Tickets:
Inspections:
Files:
ossp-pkg/sio/al_test.c      1.18 -> 1.19     5 inserted, 2 deleted

ossp-pkg/sio/al_test.c 1.18 -> 1.19

--- al_test.c    2002/11/28 16:11:49     1.18
+++ al_test.c    2002/11/28 17:44:14     1.19
@@ -37,9 +37,10 @@
 #include "al.h"
 
 /* get unique pointers */
-static char label, label2;
+static char label, label2, label3;
 #define LABEL  ((al_label_t)&label)
 #define LABEL2 ((al_label_t)&label2)
+#define LABEL3 ((al_label_t)&label3)
 
 #define S(s) s, strlen(s)
 
@@ -182,7 +183,9 @@
     checklen("SPLICED",al);
     checklen("COPY",al4);
 
-    rc = al_setlabel(al4, 5, 9, LABEL2);
+    rc = al_setlabel(al4, 7, 2, NULL, LABEL3);
+    printf("setlabel result: %d (%s)\n\n",rc,al_error(rc));
+    rc = al_setlabel(al4, 5, 9, LABEL, LABEL2);
     printf("setlabel result: %d (%s)\n\n",rc,al_error(rc));
     checklen("COPY",al4);
 

CVSTrac 2.0.1