~ubuntu-branches/ubuntu/precise/torque/precise-updates

« back to all changes in this revision

Viewing changes to src/lib/Libattr/attr_fn_l.c

  • Committer: Bazaar Package Importer
  • Author(s): Dominique Belhachemi
  • Date: 2010-05-17 20:56:46 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100517205646-yjsoqs5r1s9xpnu9
Tags: upstream-2.4.8+dfsg
ImportĀ upstreamĀ versionĀ 2.4.8+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
 *  *patr elements set
120
120
 */
121
121
 
122
 
int decode_l(patr, name, rescn, val)
123
 
 
124
 
struct attribute *patr;
125
 
char *name;  /* attribute name */
126
 
char *rescn;  /* resource name, unused here */
127
 
char *val;  /* attribute value */
 
122
int
 
123
decode_l(
 
124
  struct attribute *patr,
 
125
  char *name,  /* attribute name */
 
126
  char *rescn,  /* resource name, unused here */
 
127
  char *val  /* attribute value */
 
128
)
128
129
  {
129
130
  char *pc;
130
131
 
169
170
 
170
171
#define CVNBUFSZ 21
171
172
 
172
 
int encode_l(attr, phead, atname, rsname, mode)
173
 
attribute *attr;   /* ptr to attribute */
174
 
tlist_head *phead;   /* head of attrlist list */
175
 
char  *atname;  /* attribute name */
176
 
char  *rsname;  /* resource name or null */
177
 
int  mode;   /* encode mode, unused here */
 
173
int
 
174
encode_l(
 
175
  attribute *attr,   /* ptr to attribute */
 
176
  tlist_head *phead,   /* head of attrlist list */
 
177
  char *atname,  /* attribute name */
 
178
  char *rsname,  /* resource name or null */
 
179
  int mode   /* encode mode, unused here */
 
180
)
178
181
  {
179
182
  size_t   ct;
180
183
  char   cvnbuf[CVNBUFSZ];