* constify frag_offset_fixed_p
@ 2006-04-18 10:09 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2006-04-18 10:09 UTC (permalink / raw)
To: binutils
Should have written it this way in the first place.
* frags.c (frag_offset_fixed_p): Constify args.
* frags.h (frag_offset_fixed_p): Ditto.
Index: gas/frags.c
===================================================================
RCS file: /cvs/src/src/gas/frags.c,v
retrieving revision 1.20
diff -u -p -r1.20 frags.c
--- gas/frags.c 6 Apr 2006 04:38:33 -0000 1.20
+++ gas/frags.c 18 Apr 2006 07:53:20 -0000
@@ -389,9 +389,9 @@ frag_append_1_char (int datum)
not already accounted for in the frag FR_ADDRESS. */
bfd_boolean
-frag_offset_fixed_p (fragS *frag1, fragS *frag2, bfd_vma *offset)
+frag_offset_fixed_p (const fragS *frag1, const fragS *frag2, bfd_vma *offset)
{
- fragS *frag;
+ const fragS *frag;
bfd_vma off;
/* Start with offset initialised to difference between the two frags.
Index: gas/frags.h
===================================================================
RCS file: /cvs/src/src/gas/frags.h,v
retrieving revision 1.21
diff -u -p -r1.21 frags.h
--- gas/frags.h 4 Apr 2006 08:04:57 -0000 1.21
+++ gas/frags.h 18 Apr 2006 07:53:20 -0000
@@ -148,6 +148,6 @@ char *frag_var (relax_stateT type,
offsetT offset,
char *opcode);
-bfd_boolean frag_offset_fixed_p (fragS *, fragS *, bfd_vma *);
+bfd_boolean frag_offset_fixed_p (const fragS *, const fragS *, bfd_vma *);
#endif /* FRAGS_H */
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-04-18 9:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-18 10:09 constify frag_offset_fixed_p Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).