~smcv/apparmor/connman-resolv

Viewing all changes in revision 3467.

  • Committer: Tyler Hicks
  • Date: 2016-05-28 16:58:41 UTC
  • Revision ID: tyhicks@canonical.com-20160528165841-1fm91ufngnr3ivtr
parser: Simplify change_profile grammar rules

Make future modifications to the change_profile grammar rules easier by
simplifying things. First, the change_profile rule handling is collapsed
into a single grammar rule. The inputs to the grammar rule are given
helpful variable names to make it harder to mix up which variable we're
dealing with. Finally, the two separate calls to new_entry() are unified
into a single call.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: John Johansen <john.johansen@canonical.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: