chiark
/
gitweb
/
~mdw
/
become
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b4ac471
)
Cosmetic change: use sizeof(destination) in memcpy.
1.3.2
author
mdw
<mdw>
Fri, 26 Jun 1998 10:32:54 +0000
(10:32 +0000)
committer
mdw
<mdw>
Fri, 26 Jun 1998 10:32:54 +0000
(10:32 +0000)
src/bcquery.c
patch
|
blob
|
blame
|
history
src/become.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bcquery.c
b/src/bcquery.c
index e43d0751d61b205e73871a3d3775d6aff2c37975..ff2948b808ac4d262d9023dd98ef73c4b25e09e9 100644
(file)
--- a/
src/bcquery.c
+++ b/
src/bcquery.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: bcquery.c,v 1.
1 1998/04/23 13:20:20
mdw Exp $
+ * $Id: bcquery.c,v 1.
2 1998/06/26 10:32:31
mdw Exp $
*
* Query and dump Become's configuration file
*
*
* Query and dump Become's configuration file
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: bcquery.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: bcquery.c,v $
+ * Revision 1.2 1998/06/26 10:32:31 mdw
+ * Cosmetic change: use sizeof(destination) in memcpy.
+ *
* Revision 1.1 1998/04/23 13:20:20 mdw
* Added new program to verify and query Become configuration files.
*
* Revision 1.1 1998/04/23 13:20:20 mdw
* Added new program to verify and query Become configuration files.
*
@@
-326,7
+329,7
@@
static qnode *qparse_atom(void)
if (!h)
die("unknown host `%s'", optarg);
q->q_cat = cat_where;
if (!h)
die("unknown host `%s'", optarg);
q->q_cat = cat_where;
- memcpy(&q->q_in, h->h_addr, sizeof(
struct in_addr
));
+ memcpy(&q->q_in, h->h_addr, sizeof(
q->q_in
));
nextopt();
return (q);
}
nextopt();
return (q);
}
diff --git
a/src/become.c
b/src/become.c
index 54cd4d3159e0f0f62c045c07b2b3942602b6a4de..c5df906e2e52d208bdf31f6a600d27266a1a78a7 100644
(file)
--- a/
src/become.c
+++ b/
src/become.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: become.c,v 1.1
7 1998/06/18 15:06:59
mdw Exp $
+ * $Id: become.c,v 1.1
8 1998/06/26 10:32:54
mdw Exp $
*
* Main code for `become'
*
*
* Main code for `become'
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: become.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: become.c,v $
+ * Revision 1.18 1998/06/26 10:32:54 mdw
+ * Cosmetic change: use sizeof(destination) in memcpy.
+ *
* Revision 1.17 1998/06/18 15:06:59 mdw
* Close log before execing program to avoid leaving a socket open.
*
* Revision 1.17 1998/06/18 15:06:59 mdw
* Close log before execing program to avoid leaving a socket open.
*
@@
-955,7
+958,7
@@
done_options:
uname(&u);
if ((he = gethostbyname(u.nodename)) == 0)
die("who am I? (can't resolve `%s')", u.nodename);
uname(&u);
if ((he = gethostbyname(u.nodename)) == 0)
die("who am I? (can't resolve `%s')", u.nodename);
- memcpy(&rq.host, he->h_addr, sizeof(
struct in_addr
));
+ memcpy(&rq.host, he->h_addr, sizeof(
rq.host
));
}
/* --- Fiddle with group ownerships a bit --- */
}
/* --- Fiddle with group ownerships a bit --- */