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

« back to all changes in this revision

Viewing changes to src/lib/Libattr/attr_fn_c.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:
120
120
 *  *patr elements set
121
121
 */
122
122
 
123
 
int decode_c(patr, name, rescn, val)
124
 
 
125
 
struct attribute *patr;
126
 
char *name;  /* attribute name */
127
 
char *rescn;  /* resource name, unused here */
128
 
char *val;  /* attribute value */
 
123
int
 
124
decode_c(
 
125
  struct attribute *patr,
 
126
  char *name,  /* attribute name */
 
127
  char *rescn,  /* resource name, unused here */
 
128
  char *val  /* attribute value */
 
129
)
129
130
  {
130
131
  if ((val == (char *)0) || (strlen(val) == 0))
131
132
    {
151
152
 */
152
153
/*ARGSUSED*/
153
154
 
154
 
int encode_c(attr, phead, atname, rsname, mode)
155
 
attribute *attr;  /* ptr to attribute */
156
 
tlist_head *phead;  /* head of attrlist list */
157
 
char  *atname; /* attribute name */
158
 
char  *rsname; /* resource name or null */
159
 
int  mode;  /* encode mode, unused here */
 
155
int
 
156
encode_c(
 
157
  attribute *attr,  /* ptr to attribute */
 
158
  tlist_head *phead,  /* head of attrlist list */
 
159
  char *atname, /* attribute name */
 
160
  char *rsname, /* resource name or null */
 
161
  int mode  /* encode mode, unused here */
 
162
)
160
163
  {
161
164
 
162
165
  svrattrl *pal;